diff options
Diffstat (limited to 'src/wasm.h')
-rw-r--r-- | src/wasm.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/wasm.h b/src/wasm.h index 94c3cbdaa..5b56cd62d 100644 --- a/src/wasm.h +++ b/src/wasm.h @@ -851,6 +851,11 @@ public: printFullLine(o, indent, ifFalse); return decIndent(o, indent); } + + void finalize() { + type = ifTrue->type; + if (type == none) type = ifFalse->type; // ifTrue might be unreachable + } }; class Host : public Expression { |