From: Dan Gohman Date: Tue, 1 Mar 2011 22:07:32 +0000 (+0000) Subject: Simplify this code. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=181436f11b740300b7032a7ac1ad848498a1a13e;p=oota-llvm.git Simplify this code. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126785 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/ADT/DepthFirstIterator.h b/include/llvm/ADT/DepthFirstIterator.h index b9e5cbdf8c6..dd13a2c0205 100644 --- a/include/llvm/ADT/DepthFirstIterator.h +++ b/include/llvm/ADT/DepthFirstIterator.h @@ -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); }