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.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Analysis/CFGStmtMap.cpp b/clang/lib/Analysis/CFGStmtMap.cpp
index eab2fafb546..d1c23e3c879 100644
--- a/clang/lib/Analysis/CFGStmtMap.cpp
+++ b/clang/lib/Analysis/CFGStmtMap.cpp
@@ -70,7 +70,7 @@ static void Accumulate(SMap &SM, CFGBlock *B) {
// Finally, look at the terminator. If the terminator was already added
// because it is a block-level expression in another block, overwrite
// that mapping.
- if (Stmt *Term = B->getTerminator())
+ if (Stmt *Term = B->getTerminatorStmt())
SM[Term] = B;
}
OpenPOWER on IntegriCloud