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

Jay Foad via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 13 02:54:12 PDT 2023


================
@@ -693,15 +693,15 @@ void MachineBasicBlock::updateTerminator(
   MachineBasicBlock *TBB = nullptr, *FBB = nullptr;
   SmallVector<MachineOperand, 4> Cond;
   DebugLoc DL = findBranchDebugLoc();
-  bool B = TII->analyzeBranch(*this, TBB, FBB, Cond);
+  bool B = TII->analyzeBranch(*this, TBB, FBB, Cond, /*AllowModify=*/false);
----------------
jayfoad wrote:

This change is NFC, right?

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


More information about the llvm-commits mailing list