[llvm] [BOLT] [Passes] Fix two compile warnings in BOLT (PR #73086)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 21 21:07:13 PST 2023
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 2c875719c841ff13b9b250e6ea97fc3e0aca2070 39d188b197b165898a3f2caaa819abdcf646c17d -- bolt/lib/Passes/IndirectCallPromotion.cpp bolt/lib/Passes/ReorderAlgorithm.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/bolt/lib/Passes/IndirectCallPromotion.cpp b/bolt/lib/Passes/IndirectCallPromotion.cpp
index 555258f072..260b96ba02 100644
--- a/bolt/lib/Passes/IndirectCallPromotion.cpp
+++ b/bolt/lib/Passes/IndirectCallPromotion.cpp
@@ -410,7 +410,8 @@ IndirectCallPromotion::maybeGetHotJumpTableTargets(BinaryBasicBlock &BB,
<< "BaseReg = " << BC.MRI->getName(BaseReg) << ", "
<< "IndexReg = " << BC.MRI->getName(IndexReg) << ", "
<< "DispValue = " << Twine::utohexstr(DispValue) << ", "
- << "DispExpr = " << DispExpr << ", " << "MemLocInstr = ";
+ << "DispExpr = " << DispExpr << ", "
+ << "MemLocInstr = ";
BC.printInstruction(dbgs(), *MemLocInstr, 0, &Function);
dbgs() << "\n";
});
``````````
</details>
https://github.com/llvm/llvm-project/pull/73086
More information about the llvm-commits
mailing list