summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason W Kim <jason.w.kim.2009@gmail.com>2011-01-13 00:27:00 +0000
committerJason W Kim <jason.w.kim.2009@gmail.com>2011-01-13 00:27:00 +0000
commit9322997b60caf1de7f9bcaff1dffcc5b32a8a77c (patch)
treef10255bf6fbd9d422ae51a43743a57b72413c4a3
parent0f836ea21381e42a59440d195670ed4a2a37a047 (diff)
downloadbcm5719-llvm-9322997b60caf1de7f9bcaff1dffcc5b32a8a77c.tar.gz
bcm5719-llvm-9322997b60caf1de7f9bcaff1dffcc5b32a8a77c.zip
Change call to Error() to assert()
llvm-svn: 123350
-rw-r--r--llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp b/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
index b672bc4ce41..2aabd026199 100644
--- a/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
+++ b/llvm/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)) {
OpenPOWER on IntegriCloud