diff options
Diffstat (limited to 'src/wasm2asm.h')
-rw-r--r-- | src/wasm2asm.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wasm2asm.h b/src/wasm2asm.h index 97fd2d84a..17e76e1c7 100644 --- a/src/wasm2asm.h +++ b/src/wasm2asm.h @@ -522,7 +522,7 @@ Ref Wasm2AsmBuilder::processFunctionBody(Expression* curr, IString result) { Ref ret = visit(curr, result); // if it's not already a statement, then it's an expression, and we need to assign it // (if it is a statement, it already assigns to the result var) - if (!isStatement(curr) && result != NO_RESULT) { // XXX also not EXPRESSION_RESULT? + if (!isStatement(curr) && result != NO_RESULT) { ret = ValueBuilder::makeStatement(ValueBuilder::makeAssign(ValueBuilder::makeName(result), ret)); } return ret; |