[llvm] [NFC][DebugInfo] Sequence HighPC should be LastRow.address + MinInstLength (PR #154851)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 21 15:53:15 PDT 2025
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff HEAD~1 HEAD --extensions cpp -- llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp llvm/unittests/DebugInfo/DWARF/DWARFDebugLineTest.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/unittests/DebugInfo/DWARF/DWARFDebugLineTest.cpp b/llvm/unittests/DebugInfo/DWARF/DWARFDebugLineTest.cpp
index 62c2f1826..0f2411829 100644
--- a/llvm/unittests/DebugInfo/DWARF/DWARFDebugLineTest.cpp
+++ b/llvm/unittests/DebugInfo/DWARF/DWARFDebugLineTest.cpp
@@ -2199,7 +2199,8 @@ TEST_F(DebugLineBasicFixture, LookupLastRow) {
{
uint32_t RowIndex = Table->lookupAddress(
{LastRow.Address.Address, object::SectionedAddress::UndefSection});
- // Both last and the second to the last row have the same PC, so the second to the last should pop up first.
+ // Both last and the second to the last row have the same PC, so the second
+ // to the last should pop up first.
EXPECT_EQ(RowIndex, Table->Rows.size() - 2)
<< "Lookup at HighPC should find the second to the last row";
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/154851
More information about the llvm-commits
mailing list