mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-20 11:33:24 +02:00
[Mips] Use llvm::is_contained (NFC)
This commit is contained in:
parent
0980444743
commit
360257b8f5
@ -593,12 +593,7 @@ static bool BBHasFallthrough(MachineBasicBlock *MBB) {
|
||||
return false;
|
||||
|
||||
MachineBasicBlock *NextBB = &*std::next(MBBI);
|
||||
for (MachineBasicBlock::succ_iterator I = MBB->succ_begin(),
|
||||
E = MBB->succ_end(); I != E; ++I)
|
||||
if (*I == NextBB)
|
||||
return true;
|
||||
|
||||
return false;
|
||||
return llvm::is_contained(MBB->successors(), NextBB);
|
||||
}
|
||||
|
||||
/// findConstPoolEntry - Given the constpool index and CONSTPOOL_ENTRY MI,
|
||||
|
Loading…
Reference in New Issue
Block a user