summaryrefslogtreecommitdiffstats
path: root/llvm/lib
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
commit44b08bfeebd74a9d61315133afff73eebc8121de (patch)
treeda572666b8c25ea89993f4eb8c70b5aed4adc851 /llvm/lib
parentdc095559fa0031d07a85a4e78d7918f5a3d37ab3 (diff)
downloadbcm5719-llvm-44b08bfeebd74a9d61315133afff73eebc8121de.tar.gz
bcm5719-llvm-44b08bfeebd74a9d61315133afff73eebc8121de.zip
Eat the alignment keyword if we're in an attribute group.
llvm-svn: 174846
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/AsmParser/LLParser.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/AsmParser/LLParser.cpp b/llvm/lib/AsmParser/LLParser.cpp
index 9a76007bb99..e2f42d82316 100644
--- a/llvm/lib/AsmParser/LLParser.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud