1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-21 03:53:04 +02:00

[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 9208a75ae2
commit 916150a366

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;
}