[SimplifyLibCalls] Use range-based loop. NFC.

llvm-svn: 254193
This commit is contained in:
Davide Italiano 2015-11-27 08:05:40 +00:00
parent 8985efe546
commit ac0953a2e6
1 changed files with 2 additions and 4 deletions

View File

@ -86,11 +86,9 @@ static bool isOnlyUsedInEqualityComparison(Value *V, Value *With) {
}
static bool callHasFloatingPointArgument(const CallInst *CI) {
for (CallInst::const_op_iterator it = CI->op_begin(), e = CI->op_end();
it != e; ++it) {
if ((*it)->getType()->isFloatingPointTy())
for (const Use &OI : CI->operands())
if (OI->getType()->isFloatingPointTy())
return true;
}
return false;
}