forked from OSchip/llvm-project
[SimplifyLibCalls] Use range-based loop. NFC.
llvm-svn: 254193
This commit is contained in:
parent
8985efe546
commit
ac0953a2e6
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue