summaryrefslogtreecommitdiff
path: root/src/wasm-interpreter.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm-interpreter.h')
-rw-r--r--src/wasm-interpreter.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/wasm-interpreter.h b/src/wasm-interpreter.h
index d231aee42..5dbd09ef1 100644
--- a/src/wasm-interpreter.h
+++ b/src/wasm-interpreter.h
@@ -252,8 +252,10 @@ private:
}
auto iter = caseMap.find(target);
if (iter == caseMap.end()) {
- // not in the cases, so this is a break outside
- return Flow(target);
+ // not in the cases, so this is a break
+ Flow flow(target);
+ flow.clearIf(curr->name);
+ return flow;
}
size_t caseIndex = iter->second;
assert(caseIndex < curr->cases.size());