summaryrefslogtreecommitdiff
path: root/src/wasm/wasm-stack.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm/wasm-stack.cpp')
-rw-r--r--src/wasm/wasm-stack.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/wasm/wasm-stack.cpp b/src/wasm/wasm-stack.cpp
index 9ac3013b5..003d2b7af 100644
--- a/src/wasm/wasm-stack.cpp
+++ b/src/wasm/wasm-stack.cpp
@@ -48,9 +48,6 @@ void BinaryInstWriter::visitIf(If* curr) {
}
void BinaryInstWriter::emitIfElse(If* curr) {
- assert(!breakStack.empty());
- breakStack.pop_back();
- breakStack.emplace_back(IMPOSSIBLE_CONTINUE); // TODO same as If
if (func && !sourceMap) {
parent.writeExtraDebugLocation(curr, func, BinaryLocations::Else);
}
@@ -1899,9 +1896,6 @@ void BinaryInstWriter::visitTry(Try* curr) {
}
void BinaryInstWriter::emitCatch(Try* curr, Index i) {
- assert(!breakStack.empty());
- breakStack.pop_back();
- breakStack.emplace_back(IMPOSSIBLE_CONTINUE);
if (func && !sourceMap) {
parent.writeExtraDebugLocation(curr, func, i);
}
@@ -1910,9 +1904,6 @@ void BinaryInstWriter::emitCatch(Try* curr, Index i) {
}
void BinaryInstWriter::emitCatchAll(Try* curr) {
- assert(!breakStack.empty());
- breakStack.pop_back();
- breakStack.emplace_back(IMPOSSIBLE_CONTINUE);
if (func && !sourceMap) {
parent.writeExtraDebugLocation(curr, func, curr->catchBodies.size());
}