mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-04-17 17:29:02 +02:00
Fixed problems introduced by previous commits that prevented Tango from compiling.
This commit is contained in:
@@ -969,6 +969,7 @@ LLConstant* AddrExp::toConstElem(IRState* p)
|
||||
// global variable
|
||||
if (VarDeclaration* vd = vexp->var->isVarDeclaration())
|
||||
{
|
||||
vd->codegen(Type::sir);
|
||||
LLConstant* llc = llvm::dyn_cast<LLConstant>(vd->ir.getIrValue());
|
||||
assert(llc);
|
||||
return llc;
|
||||
|
||||
Reference in New Issue
Block a user