diff options
| author | Roman Divacky <rdivacky@FreeBSD.org> | 2010-04-06 15:53:59 +0000 |
|---|---|---|
| committer | Roman Divacky <rdivacky@FreeBSD.org> | 2010-04-06 15:53:59 +0000 |
| commit | 60bfabcd8ce617297c0d231f77d14ab507e98796 (patch) | |
| tree | 59c928209f8007777dd96568b026bdfe200691de /lib/Checker/BugReporter.cpp | |
| parent | 2c56c396ce5990954f85194029eeb391bc3529ff (diff) | |
Notes
Diffstat (limited to 'lib/Checker/BugReporter.cpp')
| -rw-r--r-- | lib/Checker/BugReporter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Checker/BugReporter.cpp b/lib/Checker/BugReporter.cpp index 12e61afa1010..4475872ee2dc 100644 --- a/lib/Checker/BugReporter.cpp +++ b/lib/Checker/BugReporter.cpp @@ -58,7 +58,7 @@ void BugReporterContext::addVisitor(BugReporterVisitor* visitor) { // Helper routines for walking the ExplodedGraph and fetching statements. //===----------------------------------------------------------------------===// -static inline const Stmt* GetStmt(ProgramPoint P) { +static inline const Stmt* GetStmt(const ProgramPoint &P) { if (const StmtPoint* SP = dyn_cast<StmtPoint>(&P)) return SP->getStmt(); else if (const BlockEdge* BE = dyn_cast<BlockEdge>(&P)) |
