Mercurial > projects > ldc
changeset 839:162a0502a6b9
Fixed another moreatatime (as opposed to oneatatime) issue with indexing unresolved class.
author | Tomas Lindquist Olsen <tomas.l.olsen@gmail.com> |
---|---|
date | Tue, 09 Dec 2008 17:14:52 +0100 |
parents | 94ba810ea2b0 |
children | a125ada7fd95 |
files | gen/classes.cpp gen/tocall.cpp |
diffstat | 2 files changed, 5 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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);
--- 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;