Fix malformed assert.
authorMatt Beaumont-Gay <matthewbg@google.com>
Tue, 3 Jan 2012 19:03:59 +0000 (19:03 +0000)
committerMatt Beaumont-Gay <matthewbg@google.com>
Tue, 3 Jan 2012 19:03:59 +0000 (19:03 +0000)
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147459 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/AsmParser/ARMAsmParser.cpp

index 705825478daea58651b1238180d1d90a6f48476c..7e5e770a38bd7ee8b2f5005a667d273fcfb50944 100644 (file)
@@ -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;