projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ba53aa
)
[RS4GC] Use DenseMap::count() instead of DenseMap::find()/DenseMap::end(). NFC.
author
Manuel Jacob
<me@manueljacob.de>
Tue, 29 Dec 2015 22:16:41 +0000
(22:16 +0000)
committer
Manuel 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
patch
|
blob
|
history
diff --git
a/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
b/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
index a9dc8d8eec079f9606af494a15dc565ffbcc2652..db127c3f7b4ebe9d17efb81811a31de002c284f0 100644
(file)
--- 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];
}