Fix a ton of jit failures
authorChris Lattner <sabre@nondot.org>
Wed, 13 Sep 2006 16:21:10 +0000 (16:21 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 13 Sep 2006 16:21:10 +0000 (16:21 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30292 91177308-0d34-0410-b5e6-96231b3b80d8

lib/ExecutionEngine/JIT/JITEmitter.cpp

index 0fe82fd6c844608197012a6a32ff569a63a03418..6e60caf332e42e25c7c00125fcf0a6cec609bdc9 100644 (file)
@@ -864,7 +864,7 @@ void JITEmitter::emitConstantPool(MachineConstantPool *MCP) {
   MachineConstantPoolEntry CPE = Constants.back();
   unsigned Size = CPE.Offset;
   const Type *Ty = CPE.isMachineConstantPoolEntry()
-    ? CPE.Val.ConstVal->getType() : CPE.Val.MachineCPVal->getType();
+    ? CPE.Val.MachineCPVal->getType() : CPE.Val.ConstVal->getType();
   Size += TheJIT->getTargetData()->getTypeSize(Ty);
 
   ConstantPoolBase = allocateSpace(Size, 1 << MCP->getConstantPoolAlignment());