[llvm-commits] [llvm] r126785 - /llvm/trunk/include/llvm/ADT/DepthFirstIterator.h
Dan Gohman
gohman at apple.com
Tue Mar 1 14:07:32 PST 2011
Author: djg
Date: Tue Mar 1 16:07:32 2011
New Revision: 126785
URL: http://llvm.org/viewvc/llvm-project?rev=126785&view=rev
Log:
Simplify this code.
Modified:
llvm/trunk/include/llvm/ADT/DepthFirstIterator.h
Modified: llvm/trunk/include/llvm/ADT/DepthFirstIterator.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/DepthFirstIterator.h?rev=126785&r1=126784&r2=126785&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/DepthFirstIterator.h (original)
+++ llvm/trunk/include/llvm/ADT/DepthFirstIterator.h Tue Mar 1 16:07:32 2011
@@ -143,8 +143,7 @@
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); }
More information about the llvm-commits
mailing list