summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2014-04-18 19:48:03 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2014-04-18 19:48:03 +0000
commit561edae83424f87ff86f033caf3bef6b0a54d23c (patch)
treeb2406789defffb9d9565a6169dcf100b40a9ee23 /include
parentd290fa608fe090903f306c10d27a0e181fe6fb3b (diff)
downloadllvm-561edae83424f87ff86f033caf3bef6b0a54d23c.tar.gz
llvm-561edae83424f87ff86f033caf3bef6b0a54d23c.tar.bz2
llvm-561edae83424f87ff86f033caf3bef6b0a54d23c.tar.xz
Remove a couple of redundant copies of SmallVector::operator==.
No functionality change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206635 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/ADT/ImmutableSet.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/include/llvm/ADT/ImmutableSet.h b/include/llvm/ADT/ImmutableSet.h
index ad349699e2..530315c91d 100644
--- a/include/llvm/ADT/ImmutableSet.h
+++ b/include/llvm/ADT/ImmutableSet.h
@@ -696,12 +696,7 @@ public:
}
inline bool operator==(const _Self& x) const {
- if (stack.size() != x.stack.size())
- return false;
- for (unsigned i = 0 ; i < stack.size(); i++)
- if (stack[i] != x.stack[i])
- return false;
- return true;
+ return stack == x.stack;
}
inline bool operator!=(const _Self& x) const { return !operator==(x); }