[SimplifyLibCalls] Use range-based loop. NFC.
[oota-llvm.git] / lib / Transforms / Utils / SimplifyLibCalls.cpp
index da852526f5095c79675116f72a203d7974e6e428..67e1697c7da5900db07baba5e3dbad91ea3a1180 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;
 }