From 60cb33c9b8543dee1630410c13679088d0569d03 Mon Sep 17 00:00:00 2001 From: James Henderson Date: Wed, 18 Dec 2019 16:10:04 +0000 Subject: [DebugInfo] Fix verbose printing of rows added via DW_LNE_end_sequence The debug line verbose printing was printing the wrong values for rows added via DW_LNE_end_sequence, because the row was being printed AFTER its state had been reset following it being appended to the line table. This patch fixes this issue by printing the row before appending it. Reviewers: dblaikie, MaskRay Differential Revision: https://reviews.llvm.org/D71664 --- llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp') diff --git a/llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp b/llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp index f5b1c40024d..cf31f5e57a4 100644 --- a/llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp +++ b/llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp @@ -599,12 +599,12 @@ Error DWARFDebugLine::LineTable::parse( // address is that of the byte after the last target machine instruction // of the sequence. State.Row.EndSequence = true; - State.appendRowToMatrix(); if (OS) { *OS << "\n"; OS->indent(12); State.Row.dump(*OS); } + State.appendRowToMatrix(); State.resetRowAndSequence(); break; -- cgit v1.2.3