[llvm] [DebugInfo][DWARF] Utilize DW_AT_LLVM_stmt_sequence attr in line table lookups (PR #123391)

Greg Clayton via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 28 15:14:03 PST 2025


================
@@ -848,6 +852,10 @@ Error DWARFDebugLine::LineTable::parse(
     *OS << '\n';
     Row::dumpTableHeader(*OS, /*Indent=*/Verbose ? 12 : 0);
   }
+  // *OffsetPtr points to the end of the prologue - i.e. the start of the first
+  // sequence. So initialize the first sequence offset accordingly.
+  State.Sequence.SetSequenceOffset(*OffsetPtr);
----------------
clayborg wrote:

Change to `State.resetRowAndSequence(*OffsetPtr);`

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


More information about the llvm-commits mailing list