summaryrefslogtreecommitdiff
path: root/src/wasm.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm.h')
-rw-r--r--src/wasm.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/wasm.h b/src/wasm.h
index 4d5cf4d70..1bce0bac9 100644
--- a/src/wasm.h
+++ b/src/wasm.h
@@ -1027,7 +1027,11 @@ public:
void finalize() {
if (condition) {
- type = none;
+ if (value) {
+ type = value->type;
+ } else {
+ type = none;
+ }
} else {
type = unreachable;
}