From: Ted Kremenek Date: Wed, 29 Apr 2009 22:05:03 +0000 (+0000) Subject: Fix null dereference. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=da0e8429a3598acfdd0ecf15135d432e4dd3517c;p=clang Fix null dereference. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70417 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Analysis/BugReporter.cpp b/lib/Analysis/BugReporter.cpp index 4e88baab57..34a5fbfd52 100644 --- a/lib/Analysis/BugReporter.cpp +++ b/lib/Analysis/BugReporter.cpp @@ -1675,7 +1675,7 @@ void BugReporter::FlushReport(BugReportEquivClass& EQ) { llvm::OwningPtr D(new PathDiagnostic(R.getBugType().getName(), - PD->useVerboseDescription() + !PD || PD->useVerboseDescription() ? R.getDescription() : R.getShortDescription(), BT.getCategory()));