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

Ted Kremenek kremenek at apple.com
Thu Feb 26 12:29:19 PST 2009


Author: kremenek
Date: Thu Feb 26 14:29:19 2009
New Revision: 65568

URL: http://llvm.org/viewvc/llvm-project?rev=65568&view=rev
Log:
Use Loc::IsLocType() instead of isPointerType() and isReferenceType().

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=65568&r1=65567&r2=65568&view=diff

==============================================================================
--- cfe/trunk/lib/Analysis/BugReporter.cpp (original)
+++ cfe/trunk/lib/Analysis/BugReporter.cpp Thu Feb 26 14:29:19 2009
@@ -468,10 +468,9 @@
       return true;
     
     // Create the diagnostic.
-    
     FullSourceLoc L(S->getLocStart(), BR.getSourceManager());
     
-    if (VD->getType()->isPointerType() || VD->getType()->isReferenceType()) {
+    if (Loc::IsLocType(VD->getType())) {
       std::string msg = "'" + std::string(VD->getNameAsString()) +
       "' now aliases '" + MostRecent->getNameAsString() + "'";
       





More information about the cfe-commits mailing list