From: Manuel Jacob Date: Tue, 29 Dec 2015 22:16:41 +0000 (+0000) Subject: [RS4GC] Use DenseMap::count() instead of DenseMap::find()/DenseMap::end(). NFC. X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff_plain;h=1ae1fbe339498bb2eb25c5f3526d396d1ace755f;hp=5ba53aa41de06469a12da9de7ce28b7647b51766;ds=sidebyside [RS4GC] Use DenseMap::count() instead of DenseMap::find()/DenseMap::end(). NFC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@256586 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp b/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp index a9dc8d8eec0..db127c3f7b4 100644 --- a/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp +++ b/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp @@ -1140,7 +1140,7 @@ static Value *findBasePointer(Value *I, DefiningValueMapTy &cache) { } cache[BDV] = base; } - assert(cache.find(def) != cache.end()); + assert(cache.count(def)); return cache[def]; }