mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-26 08:33:14 +01:00
Fixed #37 — ICE: llvm::GlobalVariable::setInitializer assert failed
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user