aboutsummaryrefslogtreecommitdiff
path: root/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp
diff options
context:
space:
mode:
authorAnna Zaks <ganna@apple.com>2011-09-20 01:38:47 +0000
committerAnna Zaks <ganna@apple.com>2011-09-20 01:38:47 +0000
commit1531bb0c69d9afff6a6434e4cadf345eb628b287 (patch)
treecb12b3eb00dd8f48093bd59ab9e6011b6f2917a3 /lib/StaticAnalyzer/Core/BugReporterVisitors.cpp
parenteecb6a1e8b95fcdb7d1a0d92b0a0311c041440cd (diff)
[analyzer] Use more create methods in the PathDiagnostic, cleanup.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140130 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/StaticAnalyzer/Core/BugReporterVisitors.cpp')
-rw-r--r--lib/StaticAnalyzer/Core/BugReporterVisitors.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp b/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp
index 3356ed4eac..0a38e79c3b 100644
--- a/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp
+++ b/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp
@@ -240,7 +240,8 @@ PathDiagnosticPiece *FindLastStoreBRVisitor::VisitNode(const ExplodedNode *N,
// Construct a new PathDiagnosticPiece.
ProgramPoint P = N->getLocation();
- PathDiagnosticLocation L = PathDiagnosticLocation(P,BRC.getSourceManager());
+ PathDiagnosticLocation L =
+ PathDiagnosticLocation::create(P, BRC.getSourceManager());
if (!L.isValid())
return NULL;
return new PathDiagnosticEventPiece(L, os.str());
@@ -288,7 +289,8 @@ TrackConstraintBRVisitor::VisitNode(const ExplodedNode *N,
// Construct a new PathDiagnosticPiece.
ProgramPoint P = N->getLocation();
- PathDiagnosticLocation L = PathDiagnosticLocation(P,BRC.getSourceManager());
+ PathDiagnosticLocation L =
+ PathDiagnosticLocation::create(P, BRC.getSourceManager());
if (!L.isValid())
return NULL;
return new PathDiagnosticEventPiece(L, os.str());