[llvm-branch-commits] [llvm] [RISCV][CFI] add function epilogue cfi information (PR #110810)
via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Wed Oct 2 16:21:18 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 ac123f934ecb8cc840f6ad33739a03c64ac351ca e6f1c940894489859e75b944978d42fcdffdec8e --extensions cpp,h -- llvm/lib/Target/RISCV/RISCVFrameLowering.cpp llvm/lib/Target/RISCV/RISCVFrameLowering.h llvm/lib/Target/RISCV/RISCVTargetMachine.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/RISCV/RISCVFrameLowering.cpp b/llvm/lib/Target/RISCV/RISCVFrameLowering.cpp
index 8254133d0e..66a693277a 100644
--- a/llvm/lib/Target/RISCV/RISCVFrameLowering.cpp
+++ b/llvm/lib/Target/RISCV/RISCVFrameLowering.cpp
@@ -896,7 +896,8 @@ void RISCVFrameLowering::emitEpilogue(MachineFunction &MF,
// therefor it is unecessary to place any CFI instructions after it. Just
// deallocate stack if needed and return.
if (StackSize != 0)
- deallocateStack(MF, MBB, MBBI, DL, StackSize, RVFI->getLibCallStackSize());
+ deallocateStack(MF, MBB, MBBI, DL, StackSize,
+ RVFI->getLibCallStackSize());
// Emit epilogue for shadow call stack.
emitSCSEpilogue(MF, MBB, MBBI, DL);
``````````
</details>
https://github.com/llvm/llvm-project/pull/110810
More information about the llvm-branch-commits
mailing list