Skip to content

Commit 72b540d

Browse files
committed
remove assert - FIB may be an end iterator
1 parent f2a869c commit 72b540d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/CodeGen/BranchFolding.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2143,7 +2143,7 @@ bool BranchFolder::HoistCommonCodeInSuccs(MachineBasicBlock *MBB) {
21432143
++FI;
21442144
}
21452145
}
2146-
assert(FIB->getParent() == FBB && "Unexpectedly moved FIB?");
2146+
21472147
FBB->erase(FBB->begin(), FIB);
21482148

21492149
if (UpdateLiveIns)

0 commit comments

Comments
 (0)