mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-25 17:13:14 +01:00
Removed obsolete nested context styles.
NChybrid was the only one that didn't instantly trigger a "not implemented" assertion on any code using nested function for a long time, and removing the cruft greatly improves code readability (maintainability is a moot point anyway given its current state).
This commit is contained in:
@@ -1029,10 +1029,10 @@ void DtoVarDeclaration(VarDeclaration* vd)
|
||||
#endif
|
||||
{
|
||||
Logger::println("has nestedref set (referenced by nested function/delegate)");
|
||||
assert(vd->ir.irLocal);
|
||||
DtoNestedInit(vd);
|
||||
assert(vd->ir.irLocal && "irLocal is expected to be already set by DtoCreateNestedContext");
|
||||
}
|
||||
else if(vd->ir.irLocal)
|
||||
|
||||
if(vd->ir.irLocal)
|
||||
{
|
||||
// Nothing to do if it has already been allocated.
|
||||
}
|
||||
@@ -1265,8 +1265,6 @@ LLValue* DtoRawVarDeclaration(VarDeclaration* var, LLValue* addr)
|
||||
}
|
||||
else
|
||||
assert(!addr || addr == var->ir.irLocal->value);
|
||||
|
||||
DtoNestedInit(var);
|
||||
}
|
||||
// normal local variable
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user