summaryrefslogtreecommitdiff
path: root/lib/AsmParser
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2013-02-10 23:15:51 +0000
committerBill Wendling <isanbard@gmail.com>2013-02-10 23:15:51 +0000
commit3f87d23a3dc33afa8e9f6e8853fe4b9717c8cf8d (patch)
treea5e1c78efa8101e4cc8930d605f8dc404c0ca453 /lib/AsmParser
parent0f715c26bd65516f616df94124679bad03084652 (diff)
downloadllvm-3f87d23a3dc33afa8e9f6e8853fe4b9717c8cf8d.tar.gz
llvm-3f87d23a3dc33afa8e9f6e8853fe4b9717c8cf8d.tar.bz2
llvm-3f87d23a3dc33afa8e9f6e8853fe4b9717c8cf8d.tar.xz
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
Diffstat (limited to 'lib/AsmParser')
-rw-r--r--lib/AsmParser/LLParser.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/AsmParser/LLParser.cpp b/lib/AsmParser/LLParser.cpp
index 9a76007bb9..e2f42d8231 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;