mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-16 04:43:14 +01:00
allow forward referencing, fix #361
This commit is contained in:
@@ -989,6 +989,7 @@ LLConstant* AddrExp::toConstElem(IRState* p)
|
||||
VarDeclaration* vd = vexp->var->isVarDeclaration();
|
||||
assert(vd);
|
||||
assert(vd->type->toBasetype()->ty == Tsarray);
|
||||
vd->codegen(Type::sir);
|
||||
assert(vd->ir.irGlobal);
|
||||
|
||||
// get index
|
||||
|
||||
Reference in New Issue
Block a user