From: Jason W Kim Date: Thu, 13 Jan 2011 00:27:00 +0000 (+0000) Subject: Change call to Error() to assert() X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=8a8696db6b6f6e735bb9de630876af83946b45f9;p=oota-llvm.git Change call to Error() to assert() git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123350 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/ARM/AsmParser/ARMAsmParser.cpp b/lib/Target/ARM/AsmParser/ARMAsmParser.cpp index b672bc4ce41..2aabd026199 100644 --- a/lib/Target/ARM/AsmParser/ARMAsmParser.cpp +++ b/lib/Target/ARM/AsmParser/ARMAsmParser.cpp @@ -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)) {