Mercurial > projects > ldc
comparison 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 |
comparison
equal
deleted
inserted
replaced
1148:3d1b16dabd25 | 1149:5ebe8224988b |
---|---|
967 } | 967 } |
968 | 968 |
969 // global variable | 969 // global variable |
970 if (VarDeclaration* vd = vexp->var->isVarDeclaration()) | 970 if (VarDeclaration* vd = vexp->var->isVarDeclaration()) |
971 { | 971 { |
972 vd->codegen(Type::sir); | |
972 LLConstant* llc = llvm::dyn_cast<LLConstant>(vd->ir.getIrValue()); | 973 LLConstant* llc = llvm::dyn_cast<LLConstant>(vd->ir.getIrValue()); |
973 assert(llc); | 974 assert(llc); |
974 return llc; | 975 return llc; |
975 } | 976 } |
976 // static function | 977 // static function |