diff options
author | Alon Zakai <azakai@google.com> | 2020-01-22 09:51:20 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-22 09:51:20 -0800 |
commit | 3fbe9423fcadf1b71eb45143f18dc994fb7c69e1 (patch) | |
tree | 02f9458adab44c69ec54646e0904c7d7b3ead7fd /src | |
parent | 474269867c54c7f6031bd6797f4fe96db5783c49 (diff) | |
download | binaryen-3fbe9423fcadf1b71eb45143f18dc994fb7c69e1.tar.gz binaryen-3fbe9423fcadf1b71eb45143f18dc994fb7c69e1.tar.bz2 binaryen-3fbe9423fcadf1b71eb45143f18dc994fb7c69e1.zip |
DWARF: Allow debug lines with column 0 (#2609)
While line and address values of 0 should be skipped, it
seems like column 0 are valid lines emitted by LLVM.
Diffstat (limited to 'src')
-rw-r--r-- | src/wasm/wasm-debug.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wasm/wasm-debug.cpp b/src/wasm/wasm-debug.cpp index a79f7f9e3..e0464db0c 100644 --- a/src/wasm/wasm-debug.cpp +++ b/src/wasm/wasm-debug.cpp @@ -237,9 +237,9 @@ struct LineState { } bool needToEmit() { - // If any value is 0, can ignore it + // Zero values imply we can ignore this line. // https://github.com/WebAssembly/debugging/issues/9#issuecomment-567720872 - return line != 0 && col != 0 && addr != 0; + return line != 0 && addr != 0; } // Given an old state, emit the diff from it to this state into a new line |