diff options
Diffstat (limited to 'clang/lib/Analysis')
-rw-r--r-- | clang/lib/Analysis/BugReporter.cpp | 2 | ||||
-rw-r--r-- | clang/lib/Analysis/DeadStores.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Analysis/BugReporter.cpp b/clang/lib/Analysis/BugReporter.cpp index 1741e7dc9b5..fba31f81af3 100644 --- a/clang/lib/Analysis/BugReporter.cpp +++ b/clang/lib/Analysis/BugReporter.cpp @@ -118,7 +118,7 @@ Stmt* BugReport::getStmt(BugReporter& BR) const { Stmt *S = NULL; if (BlockEntrance* BE = dyn_cast<BlockEntrance>(&ProgP)) - if (BE->getBlock() == &BR.getCFG().getExit()) + if (BE->getBlock() == &BR.getCFG()->getExit()) S = GetLastStmt(EndNode); if (!S) S = GetStmt(ProgP); diff --git a/clang/lib/Analysis/DeadStores.cpp b/clang/lib/Analysis/DeadStores.cpp index 02198b29066..ded0ed0d89f 100644 --- a/clang/lib/Analysis/DeadStores.cpp +++ b/clang/lib/Analysis/DeadStores.cpp @@ -153,7 +153,7 @@ void clang::CheckDeadStores(LiveVariables& L, BugReporter& BR) { DiagCollector C(BT); DeadStoreObs A(BR.getContext(), BR.getDiagnostic(), C, BR.getParentMap()); - L.runOnAllBlocks(BR.getCFG(), &A); + L.runOnAllBlocks(*BR.getCFG(), &A); // Emit the bug reports. |