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:
parent
9208a75ae2
commit
916150a366
@ -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
Block a user