mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-11 18:33:14 +01:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user