Updated to dmdfe 2.051

This commit is contained in:
Alexey Prokhin
2011-01-05 18:21:40 +03:00
parent 8a4ee0ede5
commit c5e9784863
37 changed files with 1405 additions and 1157 deletions

View File

@@ -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();
}