Fixed #37 — ICE: llvm::GlobalVariable::setInitializer assert failed

This commit is contained in:
Alexey Prokhin
2011-12-06 13:55:01 +04:00
parent f8bf70ff7a
commit 8b50928636
3 changed files with 20 additions and 12 deletions

View File

@@ -139,6 +139,9 @@ void VarDeclaration::codegen(Ir* p)
LLType *_type = DtoConstInitializerType(type, init);
if (_name == "_D13TypeInfo_yAAa6__initZ")
printf("!!!\n");
// create the global variable
LLGlobalVariable* gvar = new LLGlobalVariable(*gIR->module, _type, _isconst,
DtoLinkage(this), NULL, _name, 0, isThreadlocal());