summaryrefslogtreecommitdiffstats
path: root/clang/lib/Analysis/CFGStmtMap.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib/Analysis/CFGStmtMap.cpp')
-rw-r--r--clang/lib/Analysis/CFGStmtMap.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Analysis/CFGStmtMap.cpp b/clang/lib/Analysis/CFGStmtMap.cpp
index 16df67678df..7daeef92167 100644
--- a/clang/lib/Analysis/CFGStmtMap.cpp
+++ b/clang/lib/Analysis/CFGStmtMap.cpp
@@ -50,11 +50,11 @@ static void Accumulate(SMap &SM, CFGBlock *B) {
// First walk the block-level expressions.
for (CFGBlock::iterator I = B->begin(), E = B->end(); I != E; ++I) {
const CFGElement &CE = *I;
- const CFGStmt *CS = CE.getAs<CFGStmt>();
+ CFGStmt CS = CE.getAs<CFGStmt>();
if (!CS)
continue;
- CFGBlock *&Entry = SM[CS->getStmt()];
+ CFGBlock *&Entry = SM[CS.getStmt()];
// If 'Entry' is already initialized (e.g., a terminator was already),
// skip.
if (Entry)
OpenPOWER on IntegriCloud