mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-14 03:43:13 +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);
|
||||
|
||||
@@ -242,10 +242,8 @@ DValue* DtoCallFunction(Loc& loc, Type* resulttype, DValue* fnval, Expressions*
|
||||
const LLFunctionType* callableTy = DtoExtractFunctionType(callable->getType());
|
||||
assert(callableTy);
|
||||
|
||||
if (Logger::enabled())
|
||||
{
|
||||
Logger::cout() << "callable: " << *callable << '\n';
|
||||
}
|
||||
// if (Logger::enabled())
|
||||
// Logger::cout() << "callable: " << *callable << '\n';
|
||||
|
||||
// get n arguments
|
||||
size_t n_arguments = arguments ? arguments->dim : 0;
|
||||
|
||||
Reference in New Issue
Block a user