From: Argyrios Kyrtzidis Date: Fri, 3 Jan 2014 19:39:23 +0000 (+0000) Subject: Pass the decl directly to the diagnostic, no need to call getDeclName(). X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7af0ab345f200fe306c6bf7998feb121af86f7a4;p=clang 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 --- 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); } }