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:
parent
1a3020bfcf
commit
0b75dc90a7
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user