Mercurial > projects > ldc
diff gen/toir.cpp @ 1149:5ebe8224988b
Fixed problems introduced by previous commits that prevented Tango from compiling.
author | Tomas Lindquist Olsen <tomas.l.olsen gmail.com> |
---|---|
date | Fri, 27 Mar 2009 23:17:04 +0100 |
parents | 3d1b16dabd25 |
children | 3cf0066e6faf |
line wrap: on
line diff
--- a/gen/toir.cpp Fri Mar 27 21:50:32 2009 +0100 +++ b/gen/toir.cpp Fri Mar 27 23:17:04 2009 +0100 @@ -969,6 +969,7 @@ // 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;