Add back bug name to PathDiagnostic.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49139 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Analysis/BugReporter.cpp b/lib/Analysis/BugReporter.cpp
index db979fa..ef919a3 100644
--- a/lib/Analysis/BugReporter.cpp
+++ b/lib/Analysis/BugReporter.cpp
@@ -64,7 +64,6 @@
const BugDescription& B,
ExplodedGraph<GRExprEngine>& G,
ExplodedNode<ValueState>* N) {
-
PD.push_back(B.getEndPath(Ctx, N));
SourceManager& SMgr = Ctx.getSourceManager();
@@ -248,7 +247,7 @@
if (IsCached(N))
return;
- PathDiagnostic D;
+ PathDiagnostic D(B.getName());
GeneratePathDiagnostic(D, Ctx, B, G, N);
PDC->HandlePathDiagnostic(D);
}