[llvm] [BOLT][DWARF][NFC] Cleanup RangesBase check (PR #97840)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 5 10:47:53 PDT 2024
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 6c1c97c5b6744397063d9976bead154be38b8388 419734c3c36b4ecc2552ef9ddf0d68dd60222925 -- bolt/lib/Rewrite/DWARFRewriter.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/bolt/lib/Rewrite/DWARFRewriter.cpp b/bolt/lib/Rewrite/DWARFRewriter.cpp
index b054770646..9bf73f1a7a 100644
--- a/bolt/lib/Rewrite/DWARFRewriter.cpp
+++ b/bolt/lib/Rewrite/DWARFRewriter.cpp
@@ -2170,14 +2170,14 @@ void DWARFRewriter::convertToRangesPatchDebugInfo(
if (RangesBase) {
if (Unit.getVersion() >= 5) {
DIEBldr.addValue(&Die, RangeBaseAttribute, dwarf::DW_FORM_sec_offset,
- DIEInteger(*RangesBase));
+ DIEInteger(*RangesBase));
} else {
DIEBldr.addValue(&Die, RangeBaseAttribute, dwarf::DW_FORM_sec_offset,
- DIEInteger(INT_MAX));
+ DIEInteger(INT_MAX));
auto RangesWriterIterator =
LegacyRangesWritersByCU.find(*Unit.getDWOId());
assert(RangesWriterIterator != LegacyRangesWritersByCU.end() &&
- "RangesWriter does not exist for DWOId");
+ "RangesWriter does not exist for DWOId");
RangesWriterIterator->second->setDie(&Die);
}
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/97840
More information about the llvm-commits
mailing list