]> granicus.if.org Git - clang/commitdiff
Fix an obvious typo in an attribute's diagnostics.
authorChandler Carruth <chandlerc@gmail.com>
Thu, 30 Jun 2011 08:14:54 +0000 (08:14 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Thu, 30 Jun 2011 08:14:54 +0000 (08:14 +0000)
Patch by Caitlin Sadowski.

Unfortunately, this attribute doesn't seem to have a single test. It is
only mentioned in comments in one test, and as a string literal in
a copy of some Clang code checked in as a test for the Indexer. =[ It
dates from 2009 r74280 as part of OpenCL 1.0.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@134136 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaDeclAttr.cpp

index f5e80d563060a3d0aacd67cc1e9b2e196c03122b..9d37b4c4e837f5d956eb907a37d4b55e4f805fcd 100644 (file)
@@ -1483,7 +1483,7 @@ static void HandleReqdWorkGroupSize(Decl *D, const AttributeList &Attr,
                                     Sema &S) {
   // Attribute has 3 arguments.
   if (Attr.getNumArgs() != 3) {
-    S.Diag(Attr.getLoc(), diag::err_attribute_wrong_number_arguments) << 1;
+    S.Diag(Attr.getLoc(), diag::err_attribute_wrong_number_arguments) << 3;
     return;
   }