mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-03 14:31:10 +00:00
reject invalid comma stuff with a message. We reject the case in
PR6888 with: $ llvm-as t.ll llvm-as: t.ll:2:29: error: expected metadata or 'align' store <3 x i32> %x, i32 1, i32 1>, <3 x i32>* %p ^ instead of: $ llvm-as t.ll llvm-as: git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@102154 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
62cc838b90
commit
093eed15ae
@ -1170,10 +1170,10 @@ bool LLParser::ParseOptionalCommaAlign(unsigned &Alignment,
|
||||
return false;
|
||||
}
|
||||
|
||||
if (Lex.getKind() == lltok::kw_align) {
|
||||
if (ParseOptionalAlignment(Alignment)) return true;
|
||||
} else
|
||||
return true;
|
||||
if (Lex.getKind() != lltok::kw_align)
|
||||
return Error(Lex.getLoc(), "expected metadata or 'align'");
|
||||
|
||||
if (ParseOptionalAlignment(Alignment)) return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user