summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
diff options
context:
space:
mode:
authorManuel Jacob <me@manueljacob.de>2015-12-29 22:16:41 +0000
committerManuel Jacob <me@manueljacob.de>2015-12-29 22:16:41 +0000
commit67f1d3ac634c546a5e6a4595a8d18bebe9289419 (patch)
treea35db60a97fa61c18d2ae1be1edc6a74dee32637 /llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
parent967eb20ebe8b399a83ac7c24da7808bd8f9011b0 (diff)
downloadbcm5719-llvm-67f1d3ac634c546a5e6a4595a8d18bebe9289419.tar.gz
bcm5719-llvm-67f1d3ac634c546a5e6a4595a8d18bebe9289419.zip
[RS4GC] Use DenseMap::count() instead of DenseMap::find()/DenseMap::end(). NFC.
llvm-svn: 256586
Diffstat (limited to 'llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp')
-rw-r--r--llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp b/llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
index a9dc8d8eec0..db127c3f7b4 100644
--- a/llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
+++ b/llvm/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];
}
OpenPOWER on IntegriCloud