[llvm] [MachineBasicBlock] Fix use after free in SplitCriticalEdge (PR #66188)

Carl Ritson via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 14 00:58:01 PDT 2023


================
@@ -693,7 +693,8 @@ class MachineBasicBlock
   /// layout was modified.  If the block previously fell through to that block,
   /// it may now need a branch. If it previously branched to another block, it
   /// may now be able to fallthrough to the current layout successor.
-  void updateTerminator(MachineBasicBlock *PreviousLayoutSuccessor);
+  void updateTerminator(MachineBasicBlock *PreviousLayoutSuccessor,
+                        SlotIndexes *Indexes = nullptr);
----------------
perlfu wrote:

Done

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


More information about the llvm-commits mailing list