[llvm] r175042 - Remove unnecessary condtional assignment. The next line ignores the result of the assignment with the same condition.

Craig Topper craig.topper at gmail.com
Tue Feb 12 23:44:18 PST 2013


Author: ctopper
Date: Wed Feb 13 01:44:17 2013
New Revision: 175042

URL: http://llvm.org/viewvc/llvm-project?rev=175042&view=rev
Log:
Remove unnecessary condtional assignment. The next line ignores the result of the assignment with the same condition.

Modified:
    llvm/trunk/include/llvm/ADT/DenseMap.h

Modified: llvm/trunk/include/llvm/ADT/DenseMap.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/DenseMap.h?rev=175042&r1=175041&r2=175042&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/DenseMap.h (original)
+++ llvm/trunk/include/llvm/ADT/DenseMap.h Wed Feb 13 01:44:17 2013
@@ -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;
       }





More information about the llvm-commits mailing list