[llvm] [NewPM] Port CFIInstrInserter to the new pass manager (PR #217494)
Bill Wendling via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 19 18:01:08 PDT 2026
================
@@ -391,15 +408,16 @@ void CFIInstrInserter::updateSuccCFAInfo(MBBCFAInfo &MBBInfo) {
} while (!Stack.empty());
}
-bool CFIInstrInserter::insertCFIInstrs(MachineFunction &MF) {
+bool CFIInstrInserterImpl::insertCFIInstrs(MachineFunction &MF) {
const MBBCFAInfo *PrevMBBInfo = &MBBVector[MF.front().getNumber()];
const TargetInstrInfo *TII = MF.getSubtarget().getInstrInfo();
bool InsertedCFIInstr = false;
BitVector SetDifference;
for (MachineBasicBlock &MBB : MF) {
// Skip the first MBB in a function
- if (MBB.getNumber() == MF.front().getNumber()) continue;
+ if (MBB.getNumber() == MF.front().getNumber())
----------------
isanbard wrote:
This looks like it was picked up by clang-format as well.
https://github.com/llvm/llvm-project/pull/217494
More information about the llvm-commits
mailing list