summaryrefslogtreecommitdiff
path: root/src/wasm.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm.h')
-rw-r--r--src/wasm.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/wasm.h b/src/wasm.h
index f59e4368f..db8d2c608 100644
--- a/src/wasm.h
+++ b/src/wasm.h
@@ -972,6 +972,7 @@ public:
Expression *condition, *ifTrue, *ifFalse;
void finalize() {
+ assert(ifTrue);
if (ifFalse) {
type = getReachableWasmType(ifTrue->type, ifFalse->type);
}
@@ -1253,6 +1254,7 @@ public:
}
void finalize() {
+ assert(left && right);
if (isRelational()) {
type = i32;
} else {
@@ -1269,6 +1271,7 @@ public:
Expression *ifTrue, *ifFalse, *condition;
void finalize() {
+ assert(ifTrue && ifFalse);
type = getReachableWasmType(ifTrue->type, ifFalse->type);
}
};