mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-07-20 06:05:22 +02:00
Updated to dmdfe 2.051
This commit is contained in:
@@ -52,6 +52,14 @@ llvm::cl::opt<bool> checkPrintf("check-printf-calls",
|
||||
|
||||
void Expression::cacheLvalue(IRState* irs)
|
||||
{
|
||||
#if DMDV2
|
||||
if (isLvalue()) {
|
||||
Logger::println("Caching l-value of %s", toChars());
|
||||
LOG_SCOPE;
|
||||
cachedLvalue = toElem(irs)->getLVal();
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
error("expression %s does not mask any l-value", toChars());
|
||||
fatal();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user