Handle side-effects in TupleExp::e0.

Fixes DMD testcase 'aliasthis'.
This commit is contained in:
David Nadlinger
2013-06-13 19:08:59 +02:00
parent 83415eeeb8
commit 4901877d24

View File

@@ -3159,6 +3159,9 @@ DValue* TupleExp::toElem(IRState *p)
IF_LOG Logger::print("TupleExp::toElem() %s\n", toChars());
LOG_SCOPE;
// If there are any side effects, evaluate them first.
if (e0) e0->toElem(p);
std::vector<LLType*> types;
types.reserve(exps->dim);
for (size_t i = 0; i < exps->dim; i++)