[llvm-branch-commits] [NFC][BoundsChecking] Add TrapBB local variable (PR #119983)

via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Sat Dec 14 12:03:58 PST 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 8bfb53a797a0d1cb2290f188ef23418c90b7d254 daf365e3e7fdc383e18e8171f1aa89a6ce8f72ec --extensions cpp -- llvm/lib/Transforms/Instrumentation/BoundsChecking.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/llvm/lib/Transforms/Instrumentation/BoundsChecking.cpp b/llvm/lib/Transforms/Instrumentation/BoundsChecking.cpp
index c4511d574f..769fbe92b0 100644
--- a/llvm/lib/Transforms/Instrumentation/BoundsChecking.cpp
+++ b/llvm/lib/Transforms/Instrumentation/BoundsChecking.cpp
@@ -126,7 +126,7 @@ static void insertBoundsCheck(Value *Or, BuilderTy &IRB, GetTrapBBT GetTrapBB) {
   BasicBlock *Cont = OldBB->splitBasicBlock(SplitI);
   OldBB->getTerminator()->eraseFromParent();
 
-  BasicBlock * TrapBB = GetTrapBB(IRB);
+  BasicBlock *TrapBB = GetTrapBB(IRB);
 
   if (C) {
     // If we have a constant zero, unconditionally branch.

``````````

</details>


https://github.com/llvm/llvm-project/pull/119983


More information about the llvm-branch-commits mailing list