summaryrefslogtreecommitdiff
path: root/src/wasm
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm')
-rw-r--r--src/wasm/wasm.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/wasm/wasm.cpp b/src/wasm/wasm.cpp
index 20b075fd1..4f5f46f0a 100644
--- a/src/wasm/wasm.cpp
+++ b/src/wasm/wasm.cpp
@@ -324,6 +324,7 @@ bool SetLocal::isTee() {
void SetLocal::setTee(bool is) {
if (is) type = value->type;
else type = none;
+ finalize(); // type may need to be unreachable
}
void SetLocal::finalize() {