From d8cadcbc553f1518c4cb0f11f5e217f9aca106ce Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Thu, 26 Dec 2013 16:13:50 +0000 Subject: [PATCH] Getting rid of a string literal in favor of the generalized diagnostic. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@198050 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Sema/SemaDeclAttr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Sema/SemaDeclAttr.cpp b/lib/Sema/SemaDeclAttr.cpp index bf61f5b986..7e7fafdabc 100644 --- a/lib/Sema/SemaDeclAttr.cpp +++ b/lib/Sema/SemaDeclAttr.cpp @@ -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; } -- 2.40.0