mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-15 20:33:14 +01:00
Fixed another moreatatime (as opposed to oneatatime) issue with indexing unresolved class.
This commit is contained in:
@@ -1218,6 +1218,9 @@ LLValue* DtoIndexClass(LLValue* src, ClassDeclaration* cd, VarDeclaration* vd)
|
||||
if (Logger::enabled())
|
||||
Logger::cout() << "src: " << *src << '\n';
|
||||
|
||||
// make sure class is resolved
|
||||
DtoResolveClass(cd);
|
||||
|
||||
// vd must be a field
|
||||
IrField* field = vd->ir.irField;
|
||||
assert(field);
|
||||
|
||||
Reference in New Issue
Block a user