Changed SmallPtrSet.count guard + SmallPtrSet.insert to just SmallPtrSet.insert.

llvm-svn: 172452
diff --git a/llvm/lib/Transforms/Scalar/ObjCARC.cpp b/llvm/lib/Transforms/Scalar/ObjCARC.cpp
index e7c5178..abd6b41 100644
--- a/llvm/lib/Transforms/Scalar/ObjCARC.cpp
+++ b/llvm/lib/Transforms/Scalar/ObjCARC.cpp
@@ -662,10 +662,9 @@
         if (isa<BitCastInst>(UUser) || isa<GetElementPtrInst>(UUser) ||
             isa<PHINode>(UUser) || isa<SelectInst>(UUser)) {
 
-          if (!VisitedSet.count(UUser)) {
+          if (!VisitedSet.insert(UUser)) {
             DEBUG(dbgs() << "DoesObjCBlockEscape: User copies value. Escapes "
                             "if result escapes. Adding to list.\n");
-            VisitedSet.insert(V);
             Worklist.push_back(UUser);
           } else {
             DEBUG(dbgs() << "DoesObjCBlockEscape: Already visited node.\n");