mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-14 00:31:06 +00:00
Change call to Error() to assert()
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123350 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1d8661744b
commit
8a8696db6b
@ -902,10 +902,7 @@ bool ARMAsmParser::ParsePrefix(MCSymbolRefExpr::VariantKind &RefKind) {
|
||||
RefKind = MCSymbolRefExpr::VK_None;
|
||||
|
||||
// :lower16: and :upper16: modifiers
|
||||
if (getLexer().isNot(AsmToken::Colon)) {
|
||||
Error(Parser.getTok().getLoc(), "expected :");
|
||||
return true;
|
||||
}
|
||||
assert(getLexer().is(AsmToken::Colon) && "expected a :");
|
||||
Parser.Lex(); // Eat ':'
|
||||
|
||||
if (getLexer().isNot(AsmToken::Identifier)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user