mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-06 05:06:45 +00:00
[ms-inline asm] Make this a hard error.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179865 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
eb733d2a1b
commit
fea1f8ee7a
@ -1404,10 +1404,10 @@ X86Operand *X86AsmParser::ParseIntelMemOperand(unsigned SegReg,
|
||||
|
||||
unsigned Size = getIntelMemOperandSize(Tok.getString());
|
||||
if (Size) {
|
||||
Parser.Lex();
|
||||
assert ((Tok.getString() == "PTR" || Tok.getString() == "ptr") &&
|
||||
"Unexpected token!");
|
||||
Parser.Lex();
|
||||
Parser.Lex(); // Eat operand size (e.g., byte, word).
|
||||
if (Tok.getString() != "PTR" && Tok.getString() != "ptr")
|
||||
return ErrorOperand(Start, "Expected 'PTR' or 'ptr' token!");
|
||||
Parser.Lex(); // Eat ptr.
|
||||
}
|
||||
|
||||
// Parse ImmDisp [ BaseReg + Scale*IndexReg + Disp ].
|
||||
|
Loading…
Reference in New Issue
Block a user