summaryrefslogtreecommitdiffstats
path: root/lib/Sema/SemaDeclObjC.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2014-01-03 19:39:23 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2014-01-03 19:39:23 +0000
commit7af0ab345f200fe306c6bf7998feb121af86f7a4 (patch)
treed96e7a00973fa5b80eb966a7ea4e0b28e1ba77bb /lib/Sema/SemaDeclObjC.cpp
parent78b5475f7500ffb71d77d5db48765e7e8e3762ed (diff)
Pass the decl directly to the diagnostic, no need to call getDeclName().
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@198442 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaDeclObjC.cpp')
-rw-r--r--lib/Sema/SemaDeclObjC.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/SemaDeclObjC.cpp b/lib/Sema/SemaDeclObjC.cpp
index 8279263d99..8e9d27dbbe 100644
--- a/lib/Sema/SemaDeclObjC.cpp
+++ b/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);
}
}