[llvm] r256586 - [RS4GC] Use DenseMap::count() instead of DenseMap::find()/DenseMap::end(). NFC.
Manuel Jacob via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 29 14:16:41 PST 2015
Author: mjacob
Date: Tue Dec 29 16:16:41 2015
New Revision: 256586
URL: http://llvm.org/viewvc/llvm-project?rev=256586&view=rev
Log:
[RS4GC] Use DenseMap::count() instead of DenseMap::find()/DenseMap::end(). NFC.
Modified:
llvm/trunk/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp?rev=256586&r1=256585&r2=256586&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp Tue Dec 29 16:16:41 2015
@@ -1140,7 +1140,7 @@ static Value *findBasePointer(Value *I,
}
cache[BDV] = base;
}
- assert(cache.find(def) != cache.end());
+ assert(cache.count(def));
return cache[def];
}
More information about the llvm-commits
mailing list