aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/BugReporter.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2009-02-07 22:36:41 +0000
committerTed Kremenek <kremenek@apple.com>2009-02-07 22:36:41 +0000
commitd90e70819543a7a3aa099bb6cf1703551edfe306 (patch)
treed56e9c853430aa06000b0b39b8599c4e05291c4f /lib/Analysis/BugReporter.cpp
parent614842802476068c08bced367fa97de4963fd6af (diff)
Use BugReport::getDescription() for the compiler warning text.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64038 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/BugReporter.cpp')
-rw-r--r--lib/Analysis/BugReporter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Analysis/BugReporter.cpp b/lib/Analysis/BugReporter.cpp
index c42218e506..7a49112183 100644
--- a/lib/Analysis/BugReporter.cpp
+++ b/lib/Analysis/BugReporter.cpp
@@ -813,8 +813,8 @@ void BugReporter::FlushReport(BugReportEquivClass& EQ) {
R.getRanges(*this, Beg, End);
Diagnostic& Diag = getDiagnostic();
FullSourceLoc L(R.getLocation(), getSourceManager());
- const std::string &msg = PD ? R.getBugType().getName() : R.getDescription();
- unsigned ErrorDiag = Diag.getCustomDiagID(Diagnostic::Warning, msg.c_str());
+ unsigned ErrorDiag = Diag.getCustomDiagID(Diagnostic::Warning,
+ R.getDescription().c_str());
switch (End-Beg) {
default: assert(0 && "Don't handle this many ranges yet!");