Eat the alignment keyword if we're in an attribute group.
llvm-svn: 174846
This commit is contained in:
parent
dc095559fa
commit
44b08bfeeb
|
@ -878,6 +878,7 @@ bool LLParser::ParseFnAttributeValuePairs(AttrBuilder &B,
|
|||
// 2".
|
||||
unsigned Alignment;
|
||||
if (inAttrGrp) {
|
||||
Lex.Lex();
|
||||
if (ParseToken(lltok::equal, "expected '=' here") ||
|
||||
ParseUInt32(Alignment))
|
||||
return true;
|
||||
|
@ -891,6 +892,7 @@ bool LLParser::ParseFnAttributeValuePairs(AttrBuilder &B,
|
|||
case lltok::kw_alignstack: {
|
||||
unsigned Alignment;
|
||||
if (inAttrGrp) {
|
||||
Lex.Lex();
|
||||
if (ParseToken(lltok::equal, "expected '=' here") ||
|
||||
ParseUInt32(Alignment))
|
||||
return true;
|
||||
|
|
Loading…
Reference in New Issue