[llvm] [AArch64][WinCFI] Fix a crash due to missing seh directives (PR #123993)

via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 22 11:41:55 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 22d4ff155aadf0f098dd5dc48d9038da15108937 ccf81fb02c84ee268ff06256cebbf0ffe0877e82 --extensions cpp -- 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 d65b084ac2..57c6f03470 100644
--- a/llvm/lib/Target/AArch64/AArch64FrameLowering.cpp
+++ b/llvm/lib/Target/AArch64/AArch64FrameLowering.cpp
@@ -1510,7 +1510,7 @@ static MachineBasicBlock::iterator convertCalleeSaveRestoreToSPPrePostIncDec(
       ++MBBI;
       // Also skip the SEH instruction, if needed
       if (NeedsWinCFI && AArch64InstrInfo::isSEHInstruction(*MBBI))
-          ++MBBI;
+        ++MBBI;
     }
     emitFrameOffset(MBB, MBBI, DL, AArch64::SP, AArch64::SP,
                     StackOffset::getFixed(CSStackSizeInc), TII, FrameFlag,

``````````

</details>


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


More information about the llvm-commits mailing list