This bugfix corrects a suspected mismatch between the number of arguments expected and the number listed in the error message if less arguments are presented in HandleReqdWorkGroupSize.
Cheers, Caitlin
From f4e89180b6a8fb9dfc6840b6fe21147791bf1aeb Mon Sep 17 00:00:00 2001 From: Caitlin Sadowski <[email protected]> Date: Mon, 27 Jun 2011 18:15:19 -0700 Subject: [PATCH] fix what looks like a bug in the number of arguments parsing --- lib/Sema/SemaDeclAttr.cpp | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lib/Sema/SemaDeclAttr.cpp b/lib/Sema/SemaDeclAttr.cpp index f5e80d5..9d37b4c 100644 --- a/lib/Sema/SemaDeclAttr.cpp +++ b/lib/Sema/SemaDeclAttr.cpp @@ -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; } -- 1.7.3.1
_______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
