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 | d8a35325a29e818bd705e122c4c3f232b1e49875 (patch) | |
tree | 0f25089a4ba4d0e5543f3838203de8dca828d86a /clang/lib/Sema/SemaDeclObjC.cpp | |
parent | b05bec7ce821b1ae624da0a6cf01365cee3062b0 (diff) | |
download | bcm5719-llvm-d8a35325a29e818bd705e122c4c3f232b1e49875.tar.gz bcm5719-llvm-d8a35325a29e818bd705e122c4c3f232b1e49875.zip |
Pass the decl directly to the diagnostic, no need to call getDeclName().
llvm-svn: 198442
Diffstat (limited to 'clang/lib/Sema/SemaDeclObjC.cpp')
-rw-r--r-- | clang/lib/Sema/SemaDeclObjC.cpp | 2 |
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); } } |