projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9f0512d
)
Simplify this code.
author
Dan Gohman
<gohman@apple.com>
Tue, 1 Mar 2011 22:07:32 +0000
(22:07 +0000)
committer
Dan 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
patch
|
blob
|
history
diff --git
a/include/llvm/ADT/DepthFirstIterator.h
b/include/llvm/ADT/DepthFirstIterator.h
index b9e5cbdf8c6b622100b9ac29930e8a47e7dbc615..dd13a2c02053ffb5b97178b7c08b74fa961b3299 100644
(file)
--- 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); }