Eat the alignment keyword if we're in an attribute group.
llvm-svn: 174846
diff --git a/llvm/lib/AsmParser/LLParser.cpp b/llvm/lib/AsmParser/LLParser.cpp
index 9a76007..e2f42d8 100644
--- a/llvm/lib/AsmParser/LLParser.cpp
+++ b/llvm/lib/AsmParser/LLParser.cpp
@@ -878,6 +878,7 @@
// 2".
unsigned Alignment;
if (inAttrGrp) {
+ Lex.Lex();
if (ParseToken(lltok::equal, "expected '=' here") ||
ParseUInt32(Alignment))
return true;
@@ -891,6 +892,7 @@
case lltok::kw_alignstack: {
unsigned Alignment;
if (inAttrGrp) {
+ Lex.Lex();
if (ParseToken(lltok::equal, "expected '=' here") ||
ParseUInt32(Alignment))
return true;