Update SetVector to rely on the underlying set's insert to return a pair<iterator...
[oota-llvm.git] / include / llvm / Analysis / ScalarEvolutionExpressions.h
index ee0885b4fa3436be52639512260efc1e718049d8..94e665fb6dddc31b127b78fbf7d7ac6d36316ed7 100644 (file)
@@ -577,7 +577,7 @@ namespace llvm {
     SmallPtrSet<const SCEV *, 8> Visited;
 
     void push(const SCEV *S) {
-      if (Visited.insert(S) && Visitor.follow(S))
+      if (Visited.insert(S).second && Visitor.follow(S))
         Worklist.push_back(S);
     }
   public: