summaryrefslogtreecommitdiff
path: root/src/wasm-traversal.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm-traversal.h')
-rw-r--r--src/wasm-traversal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wasm-traversal.h b/src/wasm-traversal.h
index aa8e008ad..3b1de2e32 100644
--- a/src/wasm-traversal.h
+++ b/src/wasm-traversal.h
@@ -513,7 +513,7 @@ struct ControlFlowWalker : public PostWalker<SubType, VisitorType> {
}
static void doPostVisitControlFlow(SubType* self, Expression** currp) {
- assert(self->controlFlowStack.back() == *currp);
+ // note that we might be popping something else, as we may have been replaced
self->controlFlowStack.pop_back();
}