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

llvm-svn: 65568
This commit is contained in:
Ted Kremenek 2009-02-26 20:29:19 +00:00
parent d26d5c220b
commit 8b09ad17f9
1 changed files with 1 additions and 2 deletions

View File

@ -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() + "'";