Pass the decl directly to the diagnostic, no need to call getDeclName().

llvm-svn: 198442
This commit is contained in:
Argyrios Kyrtzidis 2014-01-03 19:39:23 +00:00
parent b05bec7ce8
commit d8a35325a2
1 changed files with 1 additions and 1 deletions

View File

@ -3572,7 +3572,7 @@ void Sema::DiagnoseUnusedBackingIvarInAccessor(Scope *S,
// cases where the ivar is accessed by another method that the accessor
// delegates to.
if (!IV->isReferenced() || !Checker.InvokedSelfMethod) {
Diag(Loc, DIAG) << IV->getDeclName();
Diag(Loc, DIAG) << IV;
Diag(PDecl->getLocation(), diag::note_property_declare);
}
}