diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-09-13 16:42:23 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2016-09-13 16:42:23 -0700 |
commit | 02e43255350e8d9336b658dfcfd73ed5696fbb58 (patch) | |
tree | 755b7e5ab81a66d34d5d5c413c288490885f8705 /src/wasm.h | |
parent | 39ed7c6477f24b06e7ec33d03a86d932aa9a6a5f (diff) | |
download | binaryen-02e43255350e8d9336b658dfcfd73ed5696fbb58.tar.gz binaryen-02e43255350e8d9336b658dfcfd73ed5696fbb58.tar.bz2 binaryen-02e43255350e8d9336b658dfcfd73ed5696fbb58.zip |
fix if finalize()
Diffstat (limited to 'src/wasm.h')
-rw-r--r-- | src/wasm.h | 3 |
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 } } }; |