summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
}
}
};