summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaDeclObjC.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib/Sema/SemaDeclObjC.cpp')
-rw-r--r--clang/lib/Sema/SemaDeclObjC.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaDeclObjC.cpp b/clang/lib/Sema/SemaDeclObjC.cpp
index 8279263d99f..8e9d27dbbe0 100644
--- a/clang/lib/Sema/SemaDeclObjC.cpp
+++ b/clang/lib/Sema/SemaDeclObjC.cpp
@@ -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);
}
}
OpenPOWER on IntegriCloud