[llvm] [llvm-debuginfo-analyzer] Fix crash with WebAssembly dead code (PR #141616)

David Blaikie via llvm-commits llvm-commits at lists.llvm.org
Tue May 27 09:41:25 PDT 2025


================
@@ -133,6 +133,10 @@ class LVReader {
   // Only for ELF format. The CodeView is handled in a different way.
   LVSectionIndex DotTextSectionIndex = UndefinedSectionIndex;
 
+  // Tombstone value. Assume 64 bits. The value is updated for each
+  // Compile Unit that is processed.
+  LVAddress TombstoneAddress = MaxAddress;
----------------
dwblaikie wrote:

If the value's updated for each CU anyway, could we leave it uninitialized here? (or set it to some meta-tombstone address, so we can assert that value isn't present when we expect a real tombstone value from the CU?)

https://github.com/llvm/llvm-project/pull/141616


More information about the llvm-commits mailing list