diff --git a/gen/nested.cpp b/gen/nested.cpp index 54550d07..f51d167f 100644 --- a/gen/nested.cpp +++ b/gen/nested.cpp @@ -192,7 +192,7 @@ void DtoNestedInit(VarDeclaration* vd) FuncDeclaration *parentfunc = getParentFunc(vd, true); assert(parentfunc && "No parent function for nested variable?"); - val = DtoGEPi(val, 0, vardepth); + val = DtoGEPi(nestedVar, 0, vardepth); val = DtoAlignedLoad(val, (std::string(".frame.") + parentfunc->toChars()).c_str()); } val = DtoGEPi(val, 0, vd->ir.irLocal->nestedIndex, vd->toChars()); diff --git a/gen/toobj.cpp b/gen/toobj.cpp index f8769b7b..a52f1825 100644 --- a/gen/toobj.cpp +++ b/gen/toobj.cpp @@ -612,7 +612,8 @@ void Module::genmoduleinfo() // void* xgetMembers; // void function() ictor; // -// void*[4] reserved; // useless to us +// version(D_Version2) +// void*[4] reserved; // useless to us // } // resolve ModuleInfo