r198442 - Pass the decl directly to the diagnostic, no need to call getDeclName().

Argyrios Kyrtzidis akyrtzi at gmail.com
Fri Jan 3 11:39:24 PST 2014


Author: akirtzidis
Date: Fri Jan  3 13:39:23 2014
New Revision: 198442

URL: http://llvm.org/viewvc/llvm-project?rev=198442&view=rev
Log:
Pass the decl directly to the diagnostic, no need to call getDeclName().

Modified:
    cfe/trunk/lib/Sema/SemaDeclObjC.cpp

Modified: cfe/trunk/lib/Sema/SemaDeclObjC.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaDeclObjC.cpp?rev=198442&r1=198441&r2=198442&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaDeclObjC.cpp (original)
+++ cfe/trunk/lib/Sema/SemaDeclObjC.cpp Fri Jan  3 13:39:23 2014
@@ -3572,7 +3572,7 @@ void Sema::DiagnoseUnusedBackingIvarInAc
     // 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);
     }
   }





More information about the cfe-commits mailing list