Eliminate a compile time warning.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59677 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Evan Cheng
2008-11-19 23:21:11 +00:00
parent 343f0c0467
commit eda60a8364

View File

@ -516,10 +516,12 @@ void Emitter::emitInstruction(const MachineInstr &MI,
assert(0 && "psuedo instructions should be removed before code emission"); assert(0 && "psuedo instructions should be removed before code emission");
break; break;
case TargetInstrInfo::INLINEASM: { case TargetInstrInfo::INLINEASM: {
const char* Value = MI.getOperand(0).getSymbolName(); // We allow inline assembler nodes with empty bodies - they can
/* We allow inline assembler nodes with empty bodies - they can // implicitly define registers, which is ok for JIT.
implicitly define registers, which is ok for JIT. */ if (MI.getOperand(0).getSymbolName()[0]) {
assert((Value[0] == 0) && "JIT does not support inline asm!\n"); assert(0 && "JIT does not support inline asm!\n");
abort();
}
break; break;
} }
case TargetInstrInfo::DBG_LABEL: case TargetInstrInfo::DBG_LABEL: