diff options
Diffstat (limited to 'src/wasm.h')
-rw-r--r-- | src/wasm.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/wasm.h b/src/wasm.h index d6bdfe91f..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 } } }; @@ -1027,6 +1028,8 @@ public: void finalize() { if (condition) { type = none; + } else { + type = unreachable; } } }; |