summaryrefslogtreecommitdiff
path: root/src/wasm/wasm.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm/wasm.cpp')
-rw-r--r--src/wasm/wasm.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wasm/wasm.cpp b/src/wasm/wasm.cpp
index 6e5f1fdf5..f0c853172 100644
--- a/src/wasm/wasm.cpp
+++ b/src/wasm/wasm.cpp
@@ -292,7 +292,7 @@ static void handleUnreachable(Block* block,
// there is an unreachable child, so we are unreachable, unless we have a
// break
if (!breakabilityKnown) {
- hasBreak = BranchUtils::BranchSeeker::hasNamed(block, block->name);
+ hasBreak = BranchUtils::BranchSeeker::has(block, block->name);
}
if (!hasBreak) {
block->type = unreachable;