diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2014-01-03 19:39:23 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2014-01-03 19:39:23 +0000 |
commit | 7af0ab345f200fe306c6bf7998feb121af86f7a4 (patch) | |
tree | d96e7a00973fa5b80eb966a7ea4e0b28e1ba77bb /lib/Sema/SemaDeclObjC.cpp | |
parent | 78b5475f7500ffb71d77d5db48765e7e8e3762ed (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.cpp | 2 |
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); } } |