[cfe-commits] r70417 - /cfe/trunk/lib/Analysis/BugReporter.cpp

Ted Kremenek kremenek at apple.com
Wed Apr 29 15:05:03 PDT 2009


Author: kremenek
Date: Wed Apr 29 17:05:03 2009
New Revision: 70417

URL: http://llvm.org/viewvc/llvm-project?rev=70417&view=rev
Log:
Fix null dereference.

Modified:
    cfe/trunk/lib/Analysis/BugReporter.cpp

Modified: cfe/trunk/lib/Analysis/BugReporter.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/BugReporter.cpp?rev=70417&r1=70416&r2=70417&view=diff

==============================================================================
--- cfe/trunk/lib/Analysis/BugReporter.cpp (original)
+++ cfe/trunk/lib/Analysis/BugReporter.cpp Wed Apr 29 17:05:03 2009
@@ -1675,7 +1675,7 @@
   
   llvm::OwningPtr<PathDiagnostic>
     D(new PathDiagnostic(R.getBugType().getName(),
-                         PD->useVerboseDescription()
+                         !PD || PD->useVerboseDescription()
                          ? R.getDescription() : R.getShortDescription(),
                          BT.getCategory()));
 





More information about the cfe-commits mailing list