mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-26 08:33:14 +01:00
Fixed problem where global variables did not resolve type before using it.
This commit is contained in:
@@ -23,8 +23,11 @@ LLConstant* DtoConstStructInitializer(StructInitializer* si)
|
||||
Logger::println("DtoConstStructInitializer: %s", si->toChars());
|
||||
LOG_SCOPE;
|
||||
|
||||
assert(si->ad);
|
||||
TypeStruct* ts = (TypeStruct*)si->ad->type;
|
||||
|
||||
DtoResolveDsymbol(si->ad);
|
||||
|
||||
const llvm::StructType* structtype = isaStruct(ts->ir.type->get());
|
||||
Logger::cout() << "llvm struct type: " << *structtype << '\n';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user