summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen
diff options
context:
space:
mode:
authorDavid Chisnall <csdavec@swan.ac.uk>2010-01-11 19:02:35 +0000
committerDavid Chisnall <csdavec@swan.ac.uk>2010-01-11 19:02:35 +0000
commitc8fc573ea08e16f5d28d8faf0b3787ca261e60c0 (patch)
tree27dfe4ad4e01dff98451966342467e73766f7f2f /clang/lib/CodeGen
parent217604ac719f9674bd075e07e27bf84e0305a70b (diff)
downloadbcm5719-llvm-c8fc573ea08e16f5d28d8faf0b3787ca261e60c0.tar.gz
bcm5719-llvm-c8fc573ea08e16f5d28d8faf0b3787ca261e60c0.zip
Fix type mismatch on 64-bit platforms (GNU ObjC).
llvm-svn: 93169
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r--clang/lib/CodeGen/CGObjCGNU.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGObjCGNU.cpp b/clang/lib/CodeGen/CGObjCGNU.cpp
index 191aedf10c7..a8792bde955 100644
--- a/clang/lib/CodeGen/CGObjCGNU.cpp
+++ b/clang/lib/CodeGen/CGObjCGNU.cpp
@@ -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
OpenPOWER on IntegriCloud