From: Bill Wendling Date: Sun, 10 Feb 2013 23:15:51 +0000 (+0000) Subject: Eat the alignment keyword if we're in an attribute group. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=3f87d23a3dc33afa8e9f6e8853fe4b9717c8cf8d;p=oota-llvm.git Eat the alignment keyword if we're in an attribute group. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174846 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/AsmParser/LLParser.cpp b/lib/AsmParser/LLParser.cpp index 9a76007bb99..e2f42d82316 100644 --- a/lib/AsmParser/LLParser.cpp +++ b/lib/AsmParser/LLParser.cpp @@ -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;