From: Ted Kremenek Date: Thu, 26 Feb 2009 20:29:19 +0000 (+0000) Subject: Use Loc::IsLocType() instead of isPointerType() and isReferenceType(). X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3daea0a051d90f8ff660a6392f0112a0e78e6dba;p=clang Use Loc::IsLocType() instead of isPointerType() and isReferenceType(). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65568 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Analysis/BugReporter.cpp b/lib/Analysis/BugReporter.cpp index 1b013200b9..50ef3070ab 100644 --- a/lib/Analysis/BugReporter.cpp +++ b/lib/Analysis/BugReporter.cpp @@ -468,10 +468,9 @@ public: 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() + "'";