Skip to content

Commit 93fa3de

Browse files
[llvm-debuginfo-analyzer] Fix crash with WebAssembly dead code (llvm#141616)
llvm#136772 Incorrect handling of 'tombstone' value for WebAssembly. llvm-debuginfo-analyzer already uses the tombstone approach to identify dead code. Currently, the tombstone value is evaluated as std::numeric_limits<uint64_t>::max(). Which is wrong as it does not take into account the 'Address Byte Size' from the Compile Unit header. Fix incorrect 'REQUIRES'. The correct value should be: REQUIRES: webassembly-registered-target
1 parent 8b7fc64 commit 93fa3de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/test/tools/llvm-debuginfo-analyzer/WebAssembly/wasm-32bit-tombstone.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# REQUIRES: x86-registered-target
1+
# REQUIRES: webassembly-registered-target
22

33
# Test that DWARF tombstones are correctly detected/respected in wasm
44
# 32 bit object files.

0 commit comments

Comments
 (0)