mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-11 18:33:14 +01:00
Fix a bug in DtoNestedInit and update an unrelated comment.
This commit is contained in:
@@ -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());
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user