[llvm] [BOLT][NFC] Add const qualifier to certain pointers to read-only objects (PR #148543)
via llvm-commits
llvm-commits at lists.llvm.org
Sun Jul 13 11:10:05 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 -- bolt/runtime/instr.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/bolt/runtime/instr.cpp b/bolt/runtime/instr.cpp
index a30edbebe..7cdb79695 100644
--- a/bolt/runtime/instr.cpp
+++ b/bolt/runtime/instr.cpp
@@ -819,8 +819,7 @@ void printStats(const ProfileWriterContext &Ctx) {
Ctx.IndCallDescriptions),
10);
StatPtr = strCopy(StatPtr, "\nFuncDescSize: ");
- StatPtr = intToStr(
- StatPtr,
+ StatPtr = intToStr(StatPtr,
reinterpret_cast<const uint8_t *>(Ctx.Strings) -
Ctx.FuncDescriptions,
10);
``````````
</details>
https://github.com/llvm/llvm-project/pull/148543
More information about the llvm-commits
mailing list