diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/wasm-traversal.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/wasm-traversal.h b/src/wasm-traversal.h index a345a7f4b..4725237dd 100644 --- a/src/wasm-traversal.h +++ b/src/wasm-traversal.h @@ -465,7 +465,8 @@ struct ControlFlowWalker : public PostWalker<SubType, VisitorType> { } else if (Loop* loop = curr->template dynCast<Loop>()) { if (name == loop->name) return curr; } else { - WASM_UNREACHABLE(); + // an if, ignorable + assert(curr->template is<If>()); } if (i == 0) return nullptr; i--; |