diff options
author | Ted Kremenek <kremenek@apple.com> | 2009-02-07 22:36:41 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2009-02-07 22:36:41 +0000 |
commit | 252b90ece64169428d0977a826c32ce8d694b0e0 (patch) | |
tree | 7681a9289d75ff78feaa5ed96dfd404d0ded6591 /clang/lib/Analysis/BugReporter.cpp | |
parent | 4293c8935a138d50136f251c4fbe29931dc9bd6a (diff) | |
download | bcm5719-llvm-252b90ece64169428d0977a826c32ce8d694b0e0.tar.gz bcm5719-llvm-252b90ece64169428d0977a826c32ce8d694b0e0.zip |
Use BugReport::getDescription() for the compiler warning text.
llvm-svn: 64038
Diffstat (limited to 'clang/lib/Analysis/BugReporter.cpp')
-rw-r--r-- | clang/lib/Analysis/BugReporter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Analysis/BugReporter.cpp b/clang/lib/Analysis/BugReporter.cpp index c42218e506c..7a491121836 100644 --- a/clang/lib/Analysis/BugReporter.cpp +++ b/clang/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!"); |