mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-15 03:13:14 +01:00
more moreatatime fixes
This commit is contained in:
@@ -1059,6 +1059,7 @@ DValue* DtoCastClass(DValue* val, Type* _to)
|
||||
Logger::println("static down cast");
|
||||
// get the from class
|
||||
ClassDeclaration* cd = fc->sym->isClassDeclaration();
|
||||
DtoResolveClass(cd); // add this
|
||||
IrStruct* irstruct = cd->ir.irStruct;
|
||||
// find interface impl
|
||||
IrStruct::InterfaceMapIter iriter = irstruct->interfaceMap.find(it);
|
||||
|
||||
@@ -303,6 +303,8 @@ LLValue* DtoIndexStruct(LLValue* src, StructDeclaration* sd, VarDeclaration* vd)
|
||||
Logger::println("indexing struct field %s:", vd->toPrettyChars());
|
||||
LOG_SCOPE;
|
||||
|
||||
DtoResolveStruct(sd);
|
||||
|
||||
// vd must be a field
|
||||
IrField* field = vd->ir.irField;
|
||||
assert(field);
|
||||
|
||||
Reference in New Issue
Block a user