diff options
author | Dan Gohman <gohman@apple.com> | 2011-03-01 22:07:32 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2011-03-01 22:07:32 +0000 |
commit | 181436f11b740300b7032a7ac1ad848498a1a13e (patch) | |
tree | aec1846d3d7289f111574cfb58055bdeba25b628 | |
parent | 9f0512d85ffb44b9513ebc867f4d48d33726257a (diff) |
Simplify this code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126785 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/ADT/DepthFirstIterator.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/llvm/ADT/DepthFirstIterator.h b/include/llvm/ADT/DepthFirstIterator.h index b9e5cbdf8c..dd13a2c020 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); } |