[llvm] [BOLT][BTI] Add MCPlusBuilder::insertBTI (PR #167329)

via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 5 04:49:11 PST 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 origin/main HEAD --extensions cpp,h -- bolt/include/bolt/Core/MCPlusBuilder.h bolt/lib/Target/AArch64/AArch64MCPlusBuilder.cpp bolt/unittests/Core/MCPlusBuilder.cpp --diff_from_common_commit
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</details>

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

``````````diff
diff --git a/bolt/unittests/Core/MCPlusBuilder.cpp b/bolt/unittests/Core/MCPlusBuilder.cpp
index 692bb9ae8..dd3704742 100644
--- a/bolt/unittests/Core/MCPlusBuilder.cpp
+++ b/bolt/unittests/Core/MCPlusBuilder.cpp
@@ -206,8 +206,7 @@ TEST_P(MCPlusBuilderTester, AArch64_insertBTI_empty) {
   MCInst CallInst = MCInstBuilder(AArch64::BR).addReg(AArch64::X16);
 #ifndef NDEBUG
   ASSERT_DEATH(BC->MIB->insertBTI(*BB, CallInst),
-               "insertBTI should only be called on non-empty BasicBlocks"
-               );
+               "insertBTI should only be called on non-empty BasicBlocks");
 #else
   BC->MIB->insertBTI(*BB, CallInst);
   ASSERT(BB->size() == 0);

``````````

</details>


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


More information about the llvm-commits mailing list