summaryrefslogtreecommitdiff
path: root/src/wasm2asm.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm2asm.h')
-rw-r--r--src/wasm2asm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wasm2asm.h b/src/wasm2asm.h
index 4d5e4f2a8..3fd743dcf 100644
--- a/src/wasm2asm.h
+++ b/src/wasm2asm.h
@@ -511,7 +511,7 @@ Ref Wasm2AsmBuilder::processFunctionBody(Expression* curr, IString result) {
}
if (!curr->value) return theBreak;
// generate the value, including assigning to the result, and then do the break
- Ref ret = visitAndAssign(curr->value, result);
+ Ref ret = visitAndAssign(curr->value, breakResults[curr->name]);
ret = blockify(ret);
ret[1]->push_back(theBreak);
return ret;