]> granicus.if.org Git - clang/commitdiff
Add back bug name to PathDiagnostic.
authorTed Kremenek <kremenek@apple.com>
Thu, 3 Apr 2008 05:23:19 +0000 (05:23 +0000)
committerTed Kremenek <kremenek@apple.com>
Thu, 3 Apr 2008 05:23:19 +0000 (05:23 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49139 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/BugReporter.cpp

index db979fafdbfdddb7b7b36982a05f28f2c7fa6867..ef919a37366618288d1f57ae47358c31b9394aaa 100644 (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);
 }