Skip to content

Commit

Permalink
[ms-inline asm] Make this a hard error.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179865 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
Chad Rosier committed Apr 19, 2013
1 parent eb733d2 commit fea1f8e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/Target/X86/AsmParser/X86AsmParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 ].
Expand Down

0 comments on commit fea1f8e

Please sign in to comment.