diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/wasm/wasm-debug.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/wasm/wasm-debug.cpp b/src/wasm/wasm-debug.cpp index 8ae7497ed..20c5dfb62 100644 --- a/src/wasm/wasm-debug.cpp +++ b/src/wasm/wasm-debug.cpp @@ -241,9 +241,10 @@ struct LineState { } bool needToEmit() { - // Zero values imply we can ignore this line. + // Zero values imply we can ignore this line, unless it has something + // special we must emit. // https://github.com/WebAssembly/debugging/issues/9#issuecomment-567720872 - return line != 0 && addr != 0; + return (line != 0 && addr != 0) || endSequence; } // Given an old state, emit the diff from it to this state into a new line |