[llvm] Fix an assert failure with a funclet in a swifttailcc function. (PR #78806)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 19 15:32:40 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 0388ab3e29de843dea823b6ef0c6d0ccc56b0a16 c48744e27619ab154231e3ac4a10019955a27992 -- llvm/lib/Target/AArch64/AArch64FrameLowering.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/AArch64/AArch64FrameLowering.cpp b/llvm/lib/Target/AArch64/AArch64FrameLowering.cpp
index 01f0681ba3..6918f29822 100644
--- a/llvm/lib/Target/AArch64/AArch64FrameLowering.cpp
+++ b/llvm/lib/Target/AArch64/AArch64FrameLowering.cpp
@@ -2591,9 +2591,10 @@ StackOffset AArch64FrameLowering::resolveFrameOffsetReference(
// function.
(void) Subtarget;
// swifttailcc uses FP
- assert((Subtarget.isCallingConvWin64(MF.getFunction().getCallingConv()) ||
- MF.getFunction().getCallingConv() == CallingConv::SwiftTail) &&
- "Funclets should only be present on Win64 or swifttailcc");
+ assert(
+ (Subtarget.isCallingConvWin64(MF.getFunction().getCallingConv()) ||
+ MF.getFunction().getCallingConv() == CallingConv::SwiftTail) &&
+ "Funclets should only be present on Win64 or swifttailcc");
UseFP = true;
} else {
// We have the choice between FP and (SP or BP).
``````````
</details>
https://github.com/llvm/llvm-project/pull/78806
More information about the llvm-commits
mailing list