better wording for an error, suggested by Neil.

llvm-svn: 40163
This commit is contained in:
Chris Lattner 2007-07-21 05:26:43 +00:00
parent 625bfc8716
commit 26a1b3c6f7
2 changed files with 3 additions and 3 deletions

View File

@ -208,7 +208,7 @@ QualType Sema::GetTypeForDeclarator(Declarator &D, Scope *S) {
} else if (FTI.ArgInfo[i].Ident) {
// Reject, but continue to parse 'int(void abc)'.
Diag(FTI.ArgInfo[i].IdentLoc,
diag::err_void_param_with_identifier);
diag::err_param_with_void_type);
ArgTy = Context.IntTy;
} else {
// Reject, but continue to parse 'float(const void)'.

View File

@ -445,8 +445,8 @@ DIAG(err_typecheck_ocu_vector_not_typedef, ERROR,
"ocu_vector_type only applies to types, not variables")
// Function Parameter Semantic Analysis.
DIAG(err_void_param_with_identifier, ERROR,
"void argument may not have a name")
DIAG(err_param_with_void_type, ERROR,
"argument may not have 'void' type")
DIAG(err_void_only_param, ERROR,
"'void' must be the first and only parameter if specified")
DIAG(err_void_param_qualified, ERROR,