Mercurial > projects > ldc
comparison gen/toir.cpp @ 1465:dd72f56ad211
Added missing initializer of (LDC introduced) Expression::cachedLvalue in D2 frontend.
author | Tomas Lindquist Olsen <tomas.l.olsen gmail com> |
---|---|
date | Wed, 03 Jun 2009 03:49:24 +0200 |
parents | 5d0c043ff131 |
children | 4f7d50c744ed |
comparison
equal
deleted
inserted
replaced
1464:93644700a0b3 | 1465:dd72f56ad211 |
---|---|
1052 Logger::print("DotVarExp::toElem: %s @ %s\n", toChars(), type->toChars()); | 1052 Logger::print("DotVarExp::toElem: %s @ %s\n", toChars(), type->toChars()); |
1053 LOG_SCOPE; | 1053 LOG_SCOPE; |
1054 | 1054 |
1055 if (cachedLvalue) | 1055 if (cachedLvalue) |
1056 { | 1056 { |
1057 Logger::println("using cached lvalue"); | |
1057 LLValue *V = cachedLvalue; | 1058 LLValue *V = cachedLvalue; |
1058 cachedLvalue = NULL; | 1059 cachedLvalue = NULL; |
1059 VarDeclaration* vd = var->isVarDeclaration(); | 1060 VarDeclaration* vd = var->isVarDeclaration(); |
1060 assert(vd); | 1061 assert(vd); |
1061 return new DVarValue(type, vd, V); | 1062 return new DVarValue(type, vd, V); |