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 3130a756ef
commit cd34779ef6
1 changed files with 1 additions and 1 deletions

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