summaryrefslogtreecommitdiff
path: root/src/wasm.h
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2016-09-16 17:55:58 -0700
committerAlon Zakai <alonzakai@gmail.com>2016-09-16 18:28:28 -0700
commit0a9df805f688d5eab8be380ab7c9dde115d88852 (patch)
tree23f956226f783d2a72abfce8cf186909c7256367 /src/wasm.h
parentf0546a0c8322a4e2f1777c8a749207a70cdca681 (diff)
downloadbinaryen-0a9df805f688d5eab8be380ab7c9dde115d88852.tar.gz
binaryen-0a9df805f688d5eab8be380ab7c9dde115d88852.tar.bz2
binaryen-0a9df805f688d5eab8be380ab7c9dde115d88852.zip
br_if returns its value
Diffstat (limited to 'src/wasm.h')
-rw-r--r--src/wasm.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/wasm.h b/src/wasm.h
index 4d5cf4d70..1bce0bac9 100644
--- a/src/wasm.h
+++ b/src/wasm.h
@@ -1027,7 +1027,11 @@ public:
void finalize() {
if (condition) {
- type = none;
+ if (value) {
+ type = value->type;
+ } else {
+ type = none;
+ }
} else {
type = unreachable;
}