summaryrefslogtreecommitdiff
path: root/include/llvm/ADT/DenseMap.h
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2013-02-13 07:44:17 +0000
committerCraig Topper <craig.topper@gmail.com>2013-02-13 07:44:17 +0000
commitcef6cfe4a67af030754b4151cd63076c4aab7467 (patch)
tree3f845d7d6ee64e46ca5ccae4b62ced9a41fef9d7 /include/llvm/ADT/DenseMap.h
parent34760ee55f951385a3b4321d6686315b9e518304 (diff)
downloadllvm-cef6cfe4a67af030754b4151cd63076c4aab7467.tar.gz
llvm-cef6cfe4a67af030754b4151cd63076c4aab7467.tar.bz2
llvm-cef6cfe4a67af030754b4151cd63076c4aab7467.tar.xz
Remove unnecessary condtional assignment. The next line ignores the result of the assignment with the same condition.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175042 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ADT/DenseMap.h')
-rw-r--r--include/llvm/ADT/DenseMap.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/llvm/ADT/DenseMap.h b/include/llvm/ADT/DenseMap.h
index 12cba08a61..d410619964 100644
--- a/include/llvm/ADT/DenseMap.h
+++ b/include/llvm/ADT/DenseMap.h
@@ -493,7 +493,6 @@ private:
if (KeyInfoT::isEqual(ThisBucket->first, EmptyKey)) {
// If we've already seen a tombstone while probing, fill it in instead
// of the empty bucket we eventually probed to.
- if (FoundTombstone) ThisBucket = FoundTombstone;
FoundBucket = FoundTombstone ? FoundTombstone : ThisBucket;
return false;
}