1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 11:42:57 +01:00

[X86] Use range-based for loop. NFC

llvm-svn: 256127
This commit is contained in:
Craig Topper 2015-12-20 18:41:57 +00:00
parent 660ebfbd90
commit b8df4c67a1

View File

@ -2425,9 +2425,8 @@ bool X86InstrInfo::isSafeToClobberEFLAGS(MachineBasicBlock &MBB,
// It is safe to clobber EFLAGS at the end of a block of no successor has it // It is safe to clobber EFLAGS at the end of a block of no successor has it
// live in. // live in.
if (Iter == E) { if (Iter == E) {
for (MachineBasicBlock::succ_iterator SI = MBB.succ_begin(), for (MachineBasicBlock *S : MBB.successors())
SE = MBB.succ_end(); SI != SE; ++SI) if (S->isLiveIn(X86::EFLAGS))
if ((*SI)->isLiveIn(X86::EFLAGS))
return false; return false;
return true; return true;
} }