forked from OSchip/llvm-project
Pass the decl directly to the diagnostic, no need to call getDeclName().
llvm-svn: 198442
This commit is contained in:
parent
b05bec7ce8
commit
d8a35325a2
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue