From 30713d60670ff13b3ebca84e2d923b0044f279b1 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Tue, 1 Mar 2011 22:07:32 +0000 Subject: [PATCH] Simplify this code. llvm-svn: 126785 --- llvm/include/llvm/ADT/DepthFirstIterator.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/llvm/include/llvm/ADT/DepthFirstIterator.h b/llvm/include/llvm/ADT/DepthFirstIterator.h index b9e5cbdf8c6b..dd13a2c02053 100644 --- a/llvm/include/llvm/ADT/DepthFirstIterator.h +++ b/llvm/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); }