aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2008-11-19 23:21:11 +0000
committerEvan Cheng <evan.cheng@apple.com>2008-11-19 23:21:11 +0000
commit4e1a720ee82f04a9ffe2d5564ab1dec5527c9180 (patch)
treeea8f037a11128f9cf5e9b7b6f950f51033bd9494 /lib/Target
parentd27a0e058661cece449251fef2f9d495f336e85f (diff)
downloadexternal_llvm-4e1a720ee82f04a9ffe2d5564ab1dec5527c9180.zip
external_llvm-4e1a720ee82f04a9ffe2d5564ab1dec5527c9180.tar.gz
external_llvm-4e1a720ee82f04a9ffe2d5564ab1dec5527c9180.tar.bz2
Eliminate a compile time warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59677 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target')
-rw-r--r--lib/Target/X86/X86CodeEmitter.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/Target/X86/X86CodeEmitter.cpp b/lib/Target/X86/X86CodeEmitter.cpp
index 828d1ad..033d3b6 100644
--- a/lib/Target/X86/X86CodeEmitter.cpp
+++ b/lib/Target/X86/X86CodeEmitter.cpp
@@ -516,10 +516,12 @@ void Emitter::emitInstruction(const MachineInstr &MI,
assert(0 && "psuedo instructions should be removed before code emission");
break;
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: