Eat the alignment keyword if we're in an attribute group.

llvm-svn: 174846
This commit is contained in:
Bill Wendling 2013-02-10 23:15:51 +00:00
parent dc095559fa
commit 44b08bfeeb
1 changed files with 2 additions and 0 deletions

View File

@ -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;