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.
This commit is contained in:
David Nadlinger
2012-10-20 17:06:43 +02:00
parent 83a7258ae4
commit ece5176aa9

View File

@@ -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)