From ece5176aa984562930d5f1fc2741813a86e6c091 Mon Sep 17 00:00:00 2001 From: David Nadlinger Date: Sat, 20 Oct 2012 17:06:43 +0200 Subject: [PATCH] D1: Fix Tango build. 'this' for methods nested in structs is now internally passed as a pointer, even if struct this is by value in D1. --- gen/nested.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/gen/nested.cpp b/gen/nested.cpp index 51a03212..bc4cf44e 100644 --- a/gen/nested.cpp +++ b/gen/nested.cpp @@ -392,11 +392,7 @@ static void DtoCreateNestedContextType(FuncDeclaration* fd) { bool refout = vd->storage_class & (STCref | STCout); bool lazy = vd->storage_class & STClazy; bool byref = irparam->arg->byref; -#if STRUCTTHISREF bool isVthisPtr = irparam->isVthis && !byref; -#else - bool isVthisPtr = irparam->isVthis; -#endif if ((!refout && (!byref || lazy)) || isVthisPtr) { // This will be copied to the nesting frame. if (lazy)