[llvm] [bolt][aarch64] Change indirect call instrumentation snippet (PR #180229)

via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 11 05:49:29 PST 2026


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 c,h,cpp -- bolt/include/bolt/Core/MCPlusBuilder.h bolt/lib/Target/AArch64/AArch64MCPlusBuilder.cpp bolt/lib/Target/RISCV/RISCVMCPlusBuilder.cpp bolt/lib/Target/X86/X86MCPlusBuilder.cpp bolt/runtime/instr.cpp bolt/runtime/sys_aarch64.h bolt/test/runtime/AArch64/instrumentation-ind-call.c --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/lib/Target/AArch64/AArch64MCPlusBuilder.cpp b/bolt/lib/Target/AArch64/AArch64MCPlusBuilder.cpp
index 054291e62..f7bd38d2a 100644
--- a/bolt/lib/Target/AArch64/AArch64MCPlusBuilder.cpp
+++ b/bolt/lib/Target/AArch64/AArch64MCPlusBuilder.cpp
@@ -2666,7 +2666,8 @@ public:
     createPushRegisters(Insts.back(), AvailReg, getIntArgRegister(0));
 
     Insts.resize(Insts.size() + 2);
-    InstructionListType Addr = materializeAddress(HandlerFuncAddr, Ctx, AvailReg);
+    InstructionListType Addr =
+        materializeAddress(HandlerFuncAddr, Ctx, AvailReg);
     assert(Addr.size() == 2 && "Invalid Addr size");
     std::copy(Addr.begin(), Addr.end(), Insts.end() - Addr.size());
 

``````````

</details>


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


More information about the llvm-commits mailing list