[RS4GC] Use DenseMap::count() instead of DenseMap::find()/DenseMap::end(). NFC.
authorManuel Jacob <me@manueljacob.de>
Tue, 29 Dec 2015 22:16:41 +0000 (22:16 +0000)
committerManuel Jacob <me@manueljacob.de>
Tue, 29 Dec 2015 22:16:41 +0000 (22:16 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@256586 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/RewriteStatepointsForGC.cpp

index a9dc8d8..db127c3 100644 (file)
@@ -1140,7 +1140,7 @@ static Value *findBasePointer(Value *I, DefiningValueMapTy &cache) {
     }
     cache[BDV] = base;
   }
     }
     cache[BDV] = base;
   }
-  assert(cache.find(def) != cache.end());
+  assert(cache.count(def));
   return cache[def];
 }
 
   return cache[def];
 }