From 3daea0a051d90f8ff660a6392f0112a0e78e6dba Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Thu, 26 Feb 2009 20:29:19 +0000 Subject: [PATCH] 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 --- lib/Analysis/BugReporter.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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() + "'"; -- 2.40.0