[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:10 PDT 2023
================
@@ -682,7 +683,8 @@ class TargetInstrInfo : public MCInstrInfo {
/// If \p BytesRemoved is non-null, report the change in code size from the
/// removed instructions.
virtual unsigned removeBranch(MachineBasicBlock &MBB,
- int *BytesRemoved = nullptr) const {
+ int *BytesRemoved = nullptr,
----------------
perlfu wrote:
Done
https://github.com/llvm/llvm-project/pull/66188
More information about the llvm-commits
mailing list