[SimplifyLibCalls] Use range-based loop. NFC.
authorDavide Italiano <davide@freebsd.org>
Fri, 27 Nov 2015 08:05:40 +0000 (08:05 +0000)
committerDavide Italiano <davide@freebsd.org>
Fri, 27 Nov 2015 08:05:40 +0000 (08:05 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254193 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Utils/SimplifyLibCalls.cpp

index da85252..67e1697 100644 (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;
 }