Fix type mismatch on 64-bit platforms (GNU ObjC).

llvm-svn: 93169
This commit is contained in:
David Chisnall 2010-01-11 19:02:35 +00:00
parent 217604ac71
commit c8fc573ea0
1 changed files with 1 additions and 1 deletions

View File

@ -1934,7 +1934,7 @@ llvm::GlobalVariable *CGObjCGNU::ObjCIvarOffsetVariable(
if (!IvarOffsetPointer) {
uint64_t Offset = ComputeIvarBaseOffset(CGM, ID, Ivar);
llvm::ConstantInt *OffsetGuess =
llvm::ConstantInt::get(LongTy, Offset, "ivar");
llvm::ConstantInt::get(llvm::Type::getInt32Ty(VMContext), Offset, "ivar");
// Don't emit the guess in non-PIC code because the linker will not be able
// to replace it with the real version for a library. In non-PIC code you
// must compile with the fragile ABI if you want to use ivars from a