mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-17 05:13:14 +01:00
Added missing initializer of (LDC introduced) Expression::cachedLvalue in D2 frontend.
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user