summaryrefslogtreecommitdiffstats
path: root/clang/lib/Analysis/GRBlockCounter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib/Analysis/GRBlockCounter.cpp')
-rw-r--r--clang/lib/Analysis/GRBlockCounter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Analysis/GRBlockCounter.cpp b/clang/lib/Analysis/GRBlockCounter.cpp
index 3ecc39d3224..f69a16da401 100644
--- a/clang/lib/Analysis/GRBlockCounter.cpp
+++ b/clang/lib/Analysis/GRBlockCounter.cpp
@@ -30,8 +30,8 @@ static inline CountMap::Factory& GetFactory(void* F) {
unsigned GRBlockCounter::getNumVisited(unsigned BlockID) const {
CountMap M = GetMap(Data);
- CountMap::TreeTy* T = M.SlimFind(BlockID);
- return T ? T->getValue().second : 0;
+ CountMap::data_type* T = M.lookup(BlockID);
+ return T ? *T : 0;
}
GRBlockCounter::Factory::Factory(llvm::BumpPtrAllocator& Alloc) {
OpenPOWER on IntegriCloud