mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-17 12:23:14 +01:00
Handle side-effects in TupleExp::e0.
Fixes DMD testcase 'aliasthis'.
This commit is contained in:
@@ -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++)
|
||||
|
||||
Reference in New Issue
Block a user