forked from OSchip/llvm-project
Use Loc::IsLocType() instead of isPointerType() and isReferenceType().
llvm-svn: 65568
This commit is contained in:
parent
d26d5c220b
commit
8b09ad17f9
|
@ -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() + "'";
|
||||
|
||||
|
|
Loading…
Reference in New Issue