summaryrefslogtreecommitdiff
path: root/src/wasm-stack.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm-stack.h')
-rw-r--r--src/wasm-stack.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wasm-stack.h b/src/wasm-stack.h
index 62fe053f4..c5bcf34fd 100644
--- a/src/wasm-stack.h
+++ b/src/wasm-stack.h
@@ -251,12 +251,12 @@ void BinaryenIRWriter<SubType>::visit(Expression* curr) {
// `curr` is not reachable, so don't emit it.
return;
}
+ emitDebugLocation(curr);
// Control flow requires special handling, but most instructions can be
// emitted directly after their children.
if (Properties::isControlFlowStructure(curr)) {
Visitor<BinaryenIRWriter>::visit(curr);
} else {
- emitDebugLocation(curr);
emit(curr);
}
}