summaryrefslogtreecommitdiff
path: root/src/wasm/wasm-ir-builder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/wasm/wasm-ir-builder.cpp')
-rw-r--r--src/wasm/wasm-ir-builder.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wasm/wasm-ir-builder.cpp b/src/wasm/wasm-ir-builder.cpp
index a51337cda..96212ccd7 100644
--- a/src/wasm/wasm-ir-builder.cpp
+++ b/src/wasm/wasm-ir-builder.cpp
@@ -709,7 +709,7 @@ Result<> IRBuilder::visitFunctionStart(Function* func) {
return Err{"unexpected start of function"};
}
if (auto* loc = std::get_if<Function::DebugLocation>(&debugLoc)) {
- func->prologLocation.insert(*loc);
+ func->prologLocation = *loc;
}
debugLoc = CanReceiveDebug();
scopeStack.push_back(ScopeCtx::makeFunc(func));
@@ -975,7 +975,7 @@ Result<> IRBuilder::visitEnd() {
}
if (auto* func = scope.getFunction()) {
if (auto* loc = std::get_if<Function::DebugLocation>(&debugLoc)) {
- func->epilogLocation.insert(*loc);
+ func->epilogLocation = *loc;
}
}
debugLoc = CanReceiveDebug();