Avoid sign compare warning.
[oota-llvm.git] / include / llvm / ADT / DepthFirstIterator.h
index b9e5cbdf8c6b622100b9ac29930e8a47e7dbc615..dd13a2c02053ffb5b97178b7c08b74fa961b3299 100644 (file)
@@ -143,8 +143,7 @@ public:
   static inline _Self end(const GraphT& G, SetType &S) { return _Self(S); }
 
   inline bool operator==(const _Self& x) const {
-    return VisitStack.size() == x.VisitStack.size() &&
-           VisitStack == x.VisitStack;
+    return VisitStack == x.VisitStack;
   }
   inline bool operator!=(const _Self& x) const { return !operator==(x); }