summaryrefslogtreecommitdiff
path: root/src/wasm.h
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2016-09-13 16:42:23 -0700
committerAlon Zakai <alonzakai@gmail.com>2016-09-13 16:42:23 -0700
commit02e43255350e8d9336b658dfcfd73ed5696fbb58 (patch)
tree755b7e5ab81a66d34d5d5c413c288490885f8705 /src/wasm.h
parent39ed7c6477f24b06e7ec33d03a86d932aa9a6a5f (diff)
downloadbinaryen-02e43255350e8d9336b658dfcfd73ed5696fbb58.tar.gz
binaryen-02e43255350e8d9336b658dfcfd73ed5696fbb58.tar.bz2
binaryen-02e43255350e8d9336b658dfcfd73ed5696fbb58.zip
fix if finalize()
Diffstat (limited to 'src/wasm.h')
-rw-r--r--src/wasm.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/wasm.h b/src/wasm.h
index ca3c8e5f5..4d5cf4d70 100644
--- a/src/wasm.h
+++ b/src/wasm.h
@@ -981,7 +981,6 @@ public:
Expression *condition, *ifTrue, *ifFalse;
void finalize() {
- assert(ifTrue);
if (ifFalse) {
if (ifTrue->type == ifFalse->type) {
type = ifTrue->type;
@@ -992,6 +991,8 @@ public:
} else {
type = none;
}
+ } else {
+ type = none; // if without else
}
}
};