Eat the alignment keyword if we're in an attribute group.
authorBill Wendling <isanbard@gmail.com>
Sun, 10 Feb 2013 23:15:51 +0000 (23:15 +0000)
committerBill Wendling <isanbard@gmail.com>
Sun, 10 Feb 2013 23:15:51 +0000 (23:15 +0000)
llvm-svn: 174846

llvm/lib/AsmParser/LLParser.cpp

index 9a76007..e2f42d8 100644 (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;