Add back bug name to PathDiagnostic.

llvm-svn: 49139
This commit is contained in:
Ted Kremenek 2008-04-03 05:23:19 +00:00
parent 3a0702e631
commit e4c029e7aa
1 changed files with 1 additions and 2 deletions

View File

@ -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);
}