Fix a bug in DtoNestedInit and update an unrelated comment.

This commit is contained in:
Frits van Bommel
2009-06-03 12:32:35 +02:00
parent 062b6d93c4
commit 060d18b91e
2 changed files with 3 additions and 2 deletions

View File

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

View File

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