From 1d3c797c903dc642d65703b112d2b703d402af6c Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Thu, 3 Jul 2008 05:26:14 +0000 Subject: 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 --- clang/lib/Analysis/BugReporter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/lib/Analysis/BugReporter.cpp') 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(&ProgP)) - if (BE->getBlock() == &BR.getCFG().getExit()) + if (BE->getBlock() == &BR.getCFG()->getExit()) S = GetLastStmt(EndNode); if (!S) S = GetStmt(ProgP); -- cgit v1.2.3