diff options
author | Bill Wendling <isanbard@gmail.com> | 2013-02-10 23:15:51 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2013-02-10 23:15:51 +0000 |
commit | 3f87d23a3dc33afa8e9f6e8853fe4b9717c8cf8d (patch) | |
tree | a5e1c78efa8101e4cc8930d605f8dc404c0ca453 /lib/AsmParser/LLParser.cpp | |
parent | 0f715c26bd65516f616df94124679bad03084652 (diff) | |
download | external_llvm-3f87d23a3dc33afa8e9f6e8853fe4b9717c8cf8d.zip external_llvm-3f87d23a3dc33afa8e9f6e8853fe4b9717c8cf8d.tar.gz external_llvm-3f87d23a3dc33afa8e9f6e8853fe4b9717c8cf8d.tar.bz2 |
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/LLParser.cpp')
-rw-r--r-- | lib/AsmParser/LLParser.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/AsmParser/LLParser.cpp b/lib/AsmParser/LLParser.cpp index 9a76007..e2f42d8 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; |