Fix spelling and grammar in a comment.
[oota-llvm.git] / lib / Analysis / IPA / CallGraph.cpp
index eaa0d0181afa7b9a82bf1627ac17ab95466e8466..19d0fd5190798068df7626d1b8d1c6aceb7a9d7a 100644 (file)
@@ -26,9 +26,7 @@ using namespace llvm;
 /// takes the address of the function.
 static bool isOnlyADirectCall(Function *F, CallSite CS) {
   if (!CS.getInstruction()) return false;
-  for (CallSite::arg_iterator I = CS.arg_begin(), E = CS.arg_end(); I != E; ++I)
-    if (*I == F) return false;
-  return true;
+  return !CS.hasArgument(F);
 }
 
 namespace {