Eliminate a compile time warning.
authorEvan Cheng <evan.cheng@apple.com>
Wed, 19 Nov 2008 23:21:33 +0000 (23:21 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Wed, 19 Nov 2008 23:21:33 +0000 (23:21 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59678 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/ARMCodeEmitter.cpp

index 4bc50ff6ca36fb575436217c711e5fc0d5f3e2e8..b621c41e12a4110a9523191324670e996a70945d 100644 (file)
@@ -552,10 +552,12 @@ void ARMCodeEmitter::emitPseudoInstruction(const MachineInstr &MI) {
   default:
     abort(); // FIXME:
   case TargetInstrInfo::INLINEASM: {
-    const char* Value = MI.getOperand(0).getSymbolName();
-    /* We allow inline assembler nodes with empty bodies - they can
-       implicitly define registers, which is ok for JIT. */
-    assert((Value[0] == 0) && "JIT does not support inline asm!\n");
+    // We allow inline assembler nodes with empty bodies - they can
+    // implicitly define registers, which is ok for JIT.
+    if (MI.getOperand(0).getSymbolName()[0]) {
+      assert(0 && "JIT does not support inline asm!\n");
+      abort();
+    }
     break;
   }
   case TargetInstrInfo::DBG_LABEL: