mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-10 08:53:13 +01:00
CallExp::cacheLvalue is back
This commit is contained in:
@@ -1124,6 +1124,9 @@ struct CallExp : UnaExp
|
||||
|
||||
#if IN_LLVM
|
||||
DValue* toElem(IRState* irs);
|
||||
#if DMDV2
|
||||
void cacheLvalue(IRState* p);
|
||||
#endif
|
||||
#endif
|
||||
};
|
||||
|
||||
|
||||
14
gen/toir.cpp
14
gen/toir.cpp
@@ -771,6 +771,20 @@ DValue* ModExp::toElem(IRState* p)
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#if DMDV2
|
||||
|
||||
void CallExp::cacheLvalue(IRState* p)
|
||||
{
|
||||
|
||||
Logger::println("Caching l-value of %s", toChars());
|
||||
LOG_SCOPE;
|
||||
cachedLvalue = toElem(p)->getLVal();
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
DValue* CallExp::toElem(IRState* p)
|
||||
{
|
||||
Logger::print("CallExp::toElem: %s @ %s\n", toChars(), type->toChars());
|
||||
|
||||
Reference in New Issue
Block a user