[llvm] [CFIFixup] Allow function prologues to span more than one basic block (PR #68984)

via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 13 05:44:58 PDT 2023


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 5d35273a32d239b7407338e13ed71b59174d6536 3b0b4df4b6a915b2a11a9e50bd369515d5a086a6 -- llvm/lib/CodeGen/CFIFixup.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/llvm/lib/CodeGen/CFIFixup.cpp b/llvm/lib/CodeGen/CFIFixup.cpp
index 7269616e3fff..964a8d56511f 100644
--- a/llvm/lib/CodeGen/CFIFixup.cpp
+++ b/llvm/lib/CodeGen/CFIFixup.cpp
@@ -100,7 +100,8 @@ static bool containsEpilogue(const MachineBasicBlock &MBB) {
 static MachineBasicBlock *
 findPrologueEnd(MachineFunction &MF, MachineBasicBlock::iterator &PrologueEnd) {
   MachineBasicBlock *PrologueBlock = nullptr;
-  for (auto It = po_begin(&MF.front()), End = po_end(&MF.front()); It != End; ++It) {
+  for (auto It = po_begin(&MF.front()), End = po_end(&MF.front()); It != End;
+       ++It) {
     MachineBasicBlock *MBB = *It;
     llvm::for_each(MBB->instrs(), [&](MachineInstr &MI) {
       if (isPrologueCFIInstruction(MI)) {

``````````

</details>


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


More information about the llvm-commits mailing list