mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-09-20 04:10:18 +02: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->op = op;
|
||||||
this->size = size;
|
this->size = size;
|
||||||
type = NULL;
|
type = NULL;
|
||||||
|
|
||||||
|
#if IN_LLVM
|
||||||
|
cachedLvalue = NULL;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
Expression *Expression::syntaxCopy()
|
Expression *Expression::syntaxCopy()
|
||||||
|
|||||||
@@ -1054,6 +1054,7 @@ DValue* DotVarExp::toElem(IRState* p)
|
|||||||
|
|
||||||
if (cachedLvalue)
|
if (cachedLvalue)
|
||||||
{
|
{
|
||||||
|
Logger::println("using cached lvalue");
|
||||||
LLValue *V = cachedLvalue;
|
LLValue *V = cachedLvalue;
|
||||||
cachedLvalue = NULL;
|
cachedLvalue = NULL;
|
||||||
VarDeclaration* vd = var->isVarDeclaration();
|
VarDeclaration* vd = var->isVarDeclaration();
|
||||||
|
|||||||
Reference in New Issue
Block a user