Simplify this code.
authorDan Gohman <gohman@apple.com>
Tue, 1 Mar 2011 22:07:32 +0000 (22:07 +0000)
committerDan Gohman <gohman@apple.com>
Tue, 1 Mar 2011 22:07:32 +0000 (22:07 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126785 91177308-0d34-0410-b5e6-96231b3b80d8

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); }