]> granicus.if.org Git - clang/commitdiff
Getting rid of a string literal in favor of the generalized diagnostic.
authorAaron Ballman <aaron@aaronballman.com>
Thu, 26 Dec 2013 16:13:50 +0000 (16:13 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Thu, 26 Dec 2013 16:13:50 +0000 (16:13 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@198050 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaDeclAttr.cpp

index bf61f5b986a01d2dff5347d278079ada697347ee..7e7fafdabc48583856123de9e037d36630c9f20c 100644 (file)
@@ -2555,7 +2555,7 @@ static void handleFormatAttr(Sema &S, Decl *D, const AttributeList &Attr) {
   
   if (Kind == InvalidFormat) {
     S.Diag(Attr.getLoc(), diag::warn_attribute_type_not_supported)
-      << "format" << II->getName();
+      << Attr.getName() << II->getName();
     return;
   }