Mercurial > projects > ldc
diff gen/toir.cpp @ 1245:465a77c904d4
Fixed all issues preventing Tango 0.99.8 to compile with `sh build-tango.sh --verbose ldc'.
author | Tomas Lindquist Olsen <tomas.l.olsen gmail.com> |
---|---|
date | Fri, 17 Apr 2009 14:38:29 +0200 |
parents | 212ec2d9d176 |
children | 01909bd1132c |
line wrap: on
line diff
--- a/gen/toir.cpp Fri Apr 17 03:01:43 2009 +0200 +++ b/gen/toir.cpp Fri Apr 17 14:38:29 2009 +0200 @@ -2390,6 +2390,9 @@ Logger::print("StructLiteralExp::toElem: %s @ %s\n", toChars(), type->toChars()); LOG_SCOPE; + // make sure the struct is resolved + sd->codegen(Type::sir); + // get inits std::vector<LLValue*> inits(sd->fields.dim, NULL); @@ -2448,6 +2451,9 @@ Logger::print("StructLiteralExp::toConstElem: %s @ %s\n", toChars(), type->toChars()); LOG_SCOPE; + // make sure the struct is resolved + sd->codegen(Type::sir); + // get inits std::vector<LLValue*> inits(sd->fields.dim, NULL);