[llvm] r174846 - Eat the alignment keyword if we're in an attribute group.

Bill Wendling isanbard at gmail.com
Sun Feb 10 15:15:52 PST 2013


Author: void
Date: Sun Feb 10 17:15:51 2013
New Revision: 174846

URL: http://llvm.org/viewvc/llvm-project?rev=174846&view=rev
Log:
Eat the alignment keyword if we're in an attribute group.

Modified:
    llvm/trunk/lib/AsmParser/LLParser.cpp

Modified: llvm/trunk/lib/AsmParser/LLParser.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/AsmParser/LLParser.cpp?rev=174846&r1=174845&r2=174846&view=diff
==============================================================================
--- llvm/trunk/lib/AsmParser/LLParser.cpp (original)
+++ llvm/trunk/lib/AsmParser/LLParser.cpp Sun Feb 10 17:15:51 2013
@@ -878,6 +878,7 @@ bool LLParser::ParseFnAttributeValuePair
       // 2".
       unsigned Alignment;
       if (inAttrGrp) {
+        Lex.Lex();
         if (ParseToken(lltok::equal, "expected '=' here") ||
             ParseUInt32(Alignment))
           return true;
@@ -891,6 +892,7 @@ bool LLParser::ParseFnAttributeValuePair
     case lltok::kw_alignstack: {
       unsigned Alignment;
       if (inAttrGrp) {
+        Lex.Lex();
         if (ParseToken(lltok::equal, "expected '=' here") ||
             ParseUInt32(Alignment))
           return true;





More information about the llvm-commits mailing list