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

Ted Kremenek kremenek at apple.com
Sat Feb 7 14:36:42 PST 2009


Author: kremenek
Date: Sat Feb  7 16:36:41 2009
New Revision: 64038

URL: http://llvm.org/viewvc/llvm-project?rev=64038&view=rev
Log:
Use BugReport::getDescription() for the compiler warning text.

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=64038&r1=64037&r2=64038&view=diff

==============================================================================
--- cfe/trunk/lib/Analysis/BugReporter.cpp (original)
+++ cfe/trunk/lib/Analysis/BugReporter.cpp Sat Feb  7 16:36:41 2009
@@ -813,8 +813,8 @@
   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!");





More information about the cfe-commits mailing list