aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/BugReporter.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-04-03 05:23:19 +0000
committerTed Kremenek <kremenek@apple.com>2008-04-03 05:23:19 +0000
commit1c1924525d2be56bfdcc3aae1203cba6dbdec8b4 (patch)
tree3e8622afb0e7b692660e5b1fae6970a3cd9b5562 /lib/Analysis/BugReporter.cpp
parentbc896f58c714e765bedb8cf1390321128c011f17 (diff)
Add back bug name to PathDiagnostic.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49139 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/BugReporter.cpp')
-rw-r--r--lib/Analysis/BugReporter.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Analysis/BugReporter.cpp b/lib/Analysis/BugReporter.cpp
index db979fafdb..ef919a3736 100644
--- a/lib/Analysis/BugReporter.cpp
+++ b/lib/Analysis/BugReporter.cpp
@@ -64,7 +64,6 @@ void BugReporter::GeneratePathDiagnostic(PathDiagnostic& PD, ASTContext& Ctx,
const BugDescription& B,
ExplodedGraph<GRExprEngine>& G,
ExplodedNode<ValueState>* N) {
-
PD.push_back(B.getEndPath(Ctx, N));
SourceManager& SMgr = Ctx.getSourceManager();
@@ -248,7 +247,7 @@ void BugReporter::EmitPathWarning(Diagnostic& Diag,
if (IsCached(N))
return;
- PathDiagnostic D;
+ PathDiagnostic D(B.getName());
GeneratePathDiagnostic(D, Ctx, B, G, N);
PDC->HandlePathDiagnostic(D);
}