# HG changeset patch # User Tomas Lindquist Olsen # Date 1228839292 -3600 # Node ID 162a0502a6b9f67711705b3042655edb1185713d # Parent 94ba810ea2b0dd951054028b7c6299428f3d2a01 Fixed another moreatatime (as opposed to oneatatime) issue with indexing unresolved class. diff -r 94ba810ea2b0 -r 162a0502a6b9 gen/classes.cpp --- a/gen/classes.cpp Tue Dec 09 14:57:01 2008 +0100 +++ b/gen/classes.cpp Tue Dec 09 17:14:52 2008 +0100 @@ -1218,6 +1218,9 @@ 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); diff -r 94ba810ea2b0 -r 162a0502a6b9 gen/tocall.cpp --- a/gen/tocall.cpp Tue Dec 09 14:57:01 2008 +0100 +++ b/gen/tocall.cpp Tue Dec 09 17:14:52 2008 +0100 @@ -242,10 +242,8 @@ 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;