]> granicus.if.org Git - clang/commitdiff
Pass the decl directly to the diagnostic, no need to call getDeclName().
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Fri, 3 Jan 2014 19:39:23 +0000 (19:39 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Fri, 3 Jan 2014 19:39:23 +0000 (19:39 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@198442 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaDeclObjC.cpp

index 8279263d99f80fd938d5b351cda681655713b072..8e9d27dbbe0baf83e4e7bacc82701d4df087eb23 100644 (file)
@@ -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);
     }
   }