summaryrefslogtreecommitdiffstats
path: root/clang/lib/Analysis/BugReporter.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-07-03 05:26:14 +0000
committerTed Kremenek <kremenek@apple.com>2008-07-03 05:26:14 +0000
commit1d3c797c903dc642d65703b112d2b703d402af6c (patch)
treeacbfc88424b20e66ae2e3fe3e31926fa0abec01d /clang/lib/Analysis/BugReporter.cpp
parent590afde872f26f902c3c6a0952c66884e46b2f7d (diff)
downloadbcm5719-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/Analysis/BugReporter.cpp')
-rw-r--r--clang/lib/Analysis/BugReporter.cpp2
1 files changed, 1 insertions, 1 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);
OpenPOWER on IntegriCloud