summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2015-12-05 14:57:10 -0800
committerAlon Zakai <alonzakai@gmail.com>2015-12-05 14:57:10 -0800
commit730c770784cc83922bcfdf43fe04064319d191d5 (patch)
tree4c0196fc0a19108ba1e2203715703f31b0094b2c /src
parent3ca8dd6de1093d67fd9eb76c6c0da823cf39c5a8 (diff)
downloadbinaryen-730c770784cc83922bcfdf43fe04064319d191d5.tar.gz
binaryen-730c770784cc83922bcfdf43fe04064319d191d5.tar.bz2
binaryen-730c770784cc83922bcfdf43fe04064319d191d5.zip
use breakResults in break
Diffstat (limited to 'src')
-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;