mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-18 13:34:04 +00:00
Fix a ton of jit failures
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30292 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3ad5e5cf99
commit
8a650095fc
@ -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…
x
Reference in New Issue
Block a user