summaryrefslogtreecommitdiff
path: root/include/llvm/ADT/DepthFirstIterator.h
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2011-03-01 22:07:32 +0000
committerDan Gohman <gohman@apple.com>2011-03-01 22:07:32 +0000
commit181436f11b740300b7032a7ac1ad848498a1a13e (patch)
treeaec1846d3d7289f111574cfb58055bdeba25b628 /include/llvm/ADT/DepthFirstIterator.h
parent9f0512d85ffb44b9513ebc867f4d48d33726257a (diff)
downloadllvm-181436f11b740300b7032a7ac1ad848498a1a13e.tar.gz
llvm-181436f11b740300b7032a7ac1ad848498a1a13e.tar.bz2
llvm-181436f11b740300b7032a7ac1ad848498a1a13e.tar.xz
Simplify this code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126785 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ADT/DepthFirstIterator.h')
-rw-r--r--include/llvm/ADT/DepthFirstIterator.h3
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); }