diff --git a/clang/include/clang/Parse/Parser.h b/clang/include/clang/Parse/Parser.h index f599b8b98d031..0e969f341bbe1 100644 --- a/clang/include/clang/Parse/Parser.h +++ b/clang/include/clang/Parse/Parser.h @@ -2893,7 +2893,7 @@ class Parser : public CodeCompletionHandler { return false; } - void ParseOpenMPAttributeArgs(IdentifierInfo *AttrName, + void ParseOpenMPAttributeArgs(const IdentifierInfo *AttrName, CachedTokens &OpenMPTokens); void ParseCXX11AttributeSpecifierInternal(ParsedAttributes &Attrs, diff --git a/clang/lib/Parse/ParseDeclCXX.cpp b/clang/lib/Parse/ParseDeclCXX.cpp index 2c37ba8003723..d6e81317197bc 100644 --- a/clang/lib/Parse/ParseDeclCXX.cpp +++ b/clang/lib/Parse/ParseDeclCXX.cpp @@ -4306,7 +4306,7 @@ Parser::TryParseCXX11AttributeIdentifier(SourceLocation &Loc, } } -void Parser::ParseOpenMPAttributeArgs(IdentifierInfo *AttrName, +void Parser::ParseOpenMPAttributeArgs(const IdentifierInfo *AttrName, CachedTokens &OpenMPTokens) { // Both 'sequence' and 'directive' attributes require arguments, so parse the // open paren for the argument list. @@ -4344,7 +4344,7 @@ void Parser::ParseOpenMPAttributeArgs(IdentifierInfo *AttrName, // * An identifier (omp) for the attribute namespace followed by :: // * An identifier (directive) or an identifier (sequence). SourceLocation IdentLoc; - IdentifierInfo *Ident = TryParseCXX11AttributeIdentifier(IdentLoc); + const IdentifierInfo *Ident = TryParseCXX11AttributeIdentifier(IdentLoc); // If there is an identifier and it is 'omp', a double colon is required // followed by the actual identifier we're after.