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