1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 19:52:54 +01:00

Fix a ton of jit failures

llvm-svn: 30292
This commit is contained in:
Chris Lattner 2006-09-13 16:21:10 +00:00
parent 1a3020bfcf
commit 0b75dc90a7

View 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());