[llvm] [NewPM] Port CFIInstrInserter to the new pass manager (PR #217494)
Aiden Grossman via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 20 06:09:45 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())
----------------
boomanaiden154 wrote:
We should drop it. If It's actually `git clang-format` that's making this modification (and not `clang-format`), we should file a bug.
https://github.com/llvm/llvm-project/pull/217494
More information about the llvm-commits
mailing list