summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM
diff options
context:
space:
mode:
authorMatt Beaumont-Gay <matthewbg@google.com>2012-01-03 19:03:59 +0000
committerMatt Beaumont-Gay <matthewbg@google.com>2012-01-03 19:03:59 +0000
commitb982d8eb651f0ee844e5fed120ef0482a3a28af1 (patch)
treed86ee1c63502c6ae1ce2ec75472930a056116cdd /llvm/lib/Target/ARM
parentbf9a62dcad48ccd64f4cf16a709e84a460050893 (diff)
downloadbcm5719-llvm-b982d8eb651f0ee844e5fed120ef0482a3a28af1.tar.gz
bcm5719-llvm-b982d8eb651f0ee844e5fed120ef0482a3a28af1.zip
Fix malformed assert.
If anybody has strong feelings about 'default: assert(0 && "blah")' vs 'default: llvm_unreachable("blah")', feel free to regularize the instances of each in this file. llvm-svn: 147459
Diffstat (limited to 'llvm/lib/Target/ARM')
-rw-r--r--llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp b/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
index 705825478da..7e5e770a38b 100644
--- a/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
+++ b/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
@@ -6192,7 +6192,7 @@ processInstruction(MCInst &Inst,
ARM_AM::ShiftOpc SOpc = ARM_AM::getSORegShOp(Inst.getOperand(3).getImm());
if (SOpc == ARM_AM::rrx) return false;
switch (Inst.getOpcode()) {
- default: assert("unexpected opcode!");
+ default: assert(0 && "unexpected opcode!");
case ARM::ANDrsi: newOpc = ARM::ANDrr; break;
case ARM::ORRrsi: newOpc = ARM::ORRrr; break;
case ARM::EORrsi: newOpc = ARM::EORrr; break;
OpenPOWER on IntegriCloud