aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/BugReporter.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2009-04-29 22:05:03 +0000
committerTed Kremenek <kremenek@apple.com>2009-04-29 22:05:03 +0000
commitda0e8429a3598acfdd0ecf15135d432e4dd3517c (patch)
tree9af39b69a5293558868e1632ba4e972f5776a5ca /lib/Analysis/BugReporter.cpp
parentd49967f8764135ae65658e354b6d38e3637c9de3 (diff)
Fix null dereference.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70417 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/BugReporter.cpp')
-rw-r--r--lib/Analysis/BugReporter.cpp2
1 files changed, 1 insertions, 1 deletions
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<PathDiagnostic>
D(new PathDiagnostic(R.getBugType().getName(),
- PD->useVerboseDescription()
+ !PD || PD->useVerboseDescription()
? R.getDescription() : R.getShortDescription(),
BT.getCategory()));