[llvm] [CallingConv] Return ArrayRef from AllocateRegBlock() (NFC) (PR #124120)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 23 06:35:50 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 ff0f1dd341cb2fdc1281a14413b3aa93bf9a20c7 9de5892d6c8ed41110882b8e3ba52b9b9359267e --extensions cpp,h -- llvm/include/llvm/CodeGen/CallingConvLower.h llvm/lib/Target/AArch64/AArch64CallingConvention.cpp llvm/lib/Target/ARM/ARMCallingConv.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/ARM/ARMCallingConv.cpp b/llvm/lib/Target/ARM/ARMCallingConv.cpp
index 2c429d7ea1..66a76a8c7a 100644
--- a/llvm/lib/Target/ARM/ARMCallingConv.cpp
+++ b/llvm/lib/Target/ARM/ARMCallingConv.cpp
@@ -228,7 +228,8 @@ static bool CC_ARM_AAPCS_Custom_Aggregate(unsigned ValNo, MVT ValVT,
break;
}
- ArrayRef<MCPhysReg> RegResult = State.AllocateRegBlock(RegList, PendingMembers.size());
+ ArrayRef<MCPhysReg> RegResult =
+ State.AllocateRegBlock(RegList, PendingMembers.size());
if (!RegResult.empty()) {
for (const auto &[PendingMember, Reg] : zip(PendingMembers, RegResult)) {
PendingMember.convertToReg(Reg);
``````````
</details>
https://github.com/llvm/llvm-project/pull/124120
More information about the llvm-commits
mailing list