diff options
Diffstat (limited to 'src/wasm/wasm-stack.cpp')
-rw-r--r-- | src/wasm/wasm-stack.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/wasm/wasm-stack.cpp b/src/wasm/wasm-stack.cpp index 99aaf517e..dda47ffa6 100644 --- a/src/wasm/wasm-stack.cpp +++ b/src/wasm/wasm-stack.cpp @@ -2839,8 +2839,13 @@ void StackIRToBinaryWriter::write() { WASM_UNREACHABLE("unexpected op"); } } + // Indicate the debug location corresponding to the end opcode that + // terminates the function code. if (func->epilogLocation.size()) { parent.writeDebugLocation(*func->epilogLocation.begin()); + } else { + // The end opcode has no debug location. + parent.writeNoDebugLocation(); } writer.emitFunctionEnd(); } |