Use Loc::IsLocType() instead of isPointerType() and isReferenceType().

llvm-svn: 65568
diff --git a/clang/lib/Analysis/BugReporter.cpp b/clang/lib/Analysis/BugReporter.cpp
index 1b01320..50ef307 100644
--- a/clang/lib/Analysis/BugReporter.cpp
+++ b/clang/lib/Analysis/BugReporter.cpp
@@ -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() + "'";