forked from OSchip/llvm-project
parent
406c096993
commit
760d19ade1
|
@ -76,8 +76,7 @@ void PragmaPackHandler::HandlePragma(Preprocessor &PP, Token &PackTok) {
|
||||||
PP.Lex(Tok);
|
PP.Lex(Tok);
|
||||||
|
|
||||||
if (Tok.isNot(tok::numeric_constant)) {
|
if (Tok.isNot(tok::numeric_constant)) {
|
||||||
PP.Diag(Tok.getLocation(), diag::warn_pragma_pack_malformed)
|
PP.Diag(Tok.getLocation(), diag::warn_pragma_pack_malformed)<<II;
|
||||||
<< II->getName();
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -88,8 +87,7 @@ void PragmaPackHandler::HandlePragma(Preprocessor &PP, Token &PackTok) {
|
||||||
PP.Lex(Tok);
|
PP.Lex(Tok);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
PP.Diag(Tok.getLocation(), diag::warn_pragma_pack_malformed)
|
PP.Diag(Tok.getLocation(), diag::warn_pragma_pack_malformed) << II;
|
||||||
<< II->getName();
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -600,7 +600,7 @@ void Parser::ParseKNRParamDeclarations(Declarator &D) {
|
||||||
// the identifier list.
|
// the identifier list.
|
||||||
if (i == FTI.NumArgs) {
|
if (i == FTI.NumArgs) {
|
||||||
Diag(ParmDeclarator.getIdentifierLoc(), diag::err_no_matching_param)
|
Diag(ParmDeclarator.getIdentifierLoc(), diag::err_no_matching_param)
|
||||||
<< ParmDeclarator.getIdentifier()->getName();
|
<< ParmDeclarator.getIdentifier();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -609,7 +609,7 @@ void Parser::ParseKNRParamDeclarations(Declarator &D) {
|
||||||
if (FTI.ArgInfo[i].Param) {
|
if (FTI.ArgInfo[i].Param) {
|
||||||
Diag(ParmDeclarator.getIdentifierLoc(),
|
Diag(ParmDeclarator.getIdentifierLoc(),
|
||||||
diag::err_param_redefinition)
|
diag::err_param_redefinition)
|
||||||
<< ParmDeclarator.getIdentifier()->getName();
|
<< ParmDeclarator.getIdentifier();
|
||||||
} else {
|
} else {
|
||||||
FTI.ArgInfo[i].Param = Param;
|
FTI.ArgInfo[i].Param = Param;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue