diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-07-03 05:26:14 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-07-03 05:26:14 +0000 |
commit | 1d3c797c903dc642d65703b112d2b703d402af6c (patch) | |
tree | acbfc88424b20e66ae2e3fe3e31926fa0abec01d /clang/lib | |
parent | 590afde872f26f902c3c6a0952c66884e46b2f7d (diff) | |
download | bcm5719-llvm-1d3c797c903dc642d65703b112d2b703d402af6c.tar.gz bcm5719-llvm-1d3c797c903dc642d65703b112d2b703d402af6c.zip |
Have BugReporter::getCFG and BugReporter::getLiveVariables returns pointers instead of references, because they can both fail
on functions we cannot construct full CFGs for yet.
llvm-svn: 53081
Diffstat (limited to 'clang/lib')
-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. |