Skip to content

Commit 876f761

Browse files
authored
Change .find()==.end() into .contains() method call
1 parent 7ab009c commit 876f761

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/CodeGen/SlotIndexes.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ void SlotIndexes::repairIndexesInRange(MachineBasicBlock *MBB,
221221
MachineInstr *SlotMI = ListI->getInstr();
222222
MachineInstr *MI = (MBBI != MBB->end() && !pastStart) ? &*MBBI : nullptr;
223223
bool MBBIAtBegin = MBBI == Begin && (!includeStart || pastStart);
224-
bool MIIndexNotFound = MI && mi2iMap.find(MI) == mi2iMap.end();
224+
bool MIIndexNotFound = MI && !mi2iMap.contains(MI);
225225
bool SlotMIRemoved = false;
226226

227227
if (SlotMI == MI && !MBBIAtBegin) {

0 commit comments

Comments
 (0)