Fixed problems introduced by previous commits that prevented Tango from compiling.

This commit is contained in:
Tomas Lindquist Olsen
2009-03-27 23:17:04 +01:00
parent ec986231e5
commit be3bfbff5d
8 changed files with 63 additions and 44 deletions

View File

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