[asan] experimental tracing for indirect calls, llvm part.
[oota-llvm.git] / lib / Transforms / ObjCARC / ObjCARCContract.cpp
index fa932500c1e3dace3765142d5b8e6acba738faa6..eb325eb9417f775697312e2aefd81c9f47d0f158 100644 (file)
@@ -508,9 +508,8 @@ bool ObjCARCContract::runOnFunction(Function &F) {
   // If this function has no escaping allocas or suspicious vararg usage,
   // objc_storeStrong calls can be marked with the "tail" keyword.
   if (TailOkForStoreStrongs)
-    for (SmallPtrSet<CallInst *, 8>::iterator I = StoreStrongCalls.begin(),
-         E = StoreStrongCalls.end(); I != E; ++I)
-      (*I)->setTailCall();
+    for (CallInst *CI : StoreStrongCalls)
+      CI->setTailCall();
   StoreStrongCalls.clear();
 
   return Changed;