[llvm] [ARM] Apply sign-return-address attribute to outlined function (PR #107877)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 9 08:26:05 PDT 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 775c50709c2d18acc085c089392847c5968457b9 006ad779ec1811edae0adc79da76ac02a610ee5e --extensions cpp -- llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp b/llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp
index bad963fa8b..6ae2a8e90d 100644
--- a/llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp
+++ b/llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp
@@ -6626,8 +6626,7 @@ void ARMBaseInstrInfo::buildOutlinedFrame(
MBB.addLiveIn(ARM::LR);
// Insert a save before the outlined region
- bool Auth = MF.getInfo<ARMFunctionInfo>()
- ->shouldSignReturnAddress(true);
+ bool Auth = MF.getInfo<ARMFunctionInfo>()->shouldSignReturnAddress(true);
saveLROnStack(MBB, It, true, Auth);
// Fix up the instructions in the range, since we're going to modify the
``````````
</details>
https://github.com/llvm/llvm-project/pull/107877
More information about the llvm-commits
mailing list