[llvm] [llvm-debuginfo-analyzer] Fix crash with WebAssembly dead code (PR #141616)
Carlos Alberto Enciso via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 25 05:27:01 PDT 2025
================
@@ -193,11 +193,17 @@ class LVCodeViewReader final : public LVBinaryReader {
llvm::object::COFFObjectFile &Obj, ScopedPrinter &W,
StringRef ExePath)
: LVBinaryReader(Filename, FileFormatName, W, LVBinaryType::COFF),
- Input(&Obj), ExePath(ExePath), LogicalVisitor(this, W, Input) {}
+ Input(&Obj), ExePath(ExePath), LogicalVisitor(this, W, Input) {
+ // CodeView does not have the concept of 'tombstone' address.
----------------
CarlosAlbertoEnciso wrote:
That is a very good point. Moving the `tombstone` to the `LVDWARFReader` makes the approach very clean with no extra dependencies.
https://github.com/llvm/llvm-project/pull/141616
More information about the llvm-commits
mailing list