Added missing initializer of (LDC introduced) Expression::cachedLvalue in D2 frontend.

This commit is contained in:
Tomas Lindquist Olsen
2009-06-03 03:49:24 +02:00
parent 092381577f
commit b218bfc828
2 changed files with 5 additions and 0 deletions

View File

@@ -889,6 +889,10 @@ Expression::Expression(Loc loc, enum TOK op, int size)
this->op = op;
this->size = size;
type = NULL;
#if IN_LLVM
cachedLvalue = NULL;
#endif
}
Expression *Expression::syntaxCopy()

View File

@@ -1054,6 +1054,7 @@ DValue* DotVarExp::toElem(IRState* p)
if (cachedLvalue)
{
Logger::println("using cached lvalue");
LLValue *V = cachedLvalue;
cachedLvalue = NULL;
VarDeclaration* vd = var->isVarDeclaration();