diff options
author | Richard Trieu <rtrieu@google.com> | 2011-09-21 02:46:06 +0000 |
---|---|---|
committer | Richard Trieu <rtrieu@google.com> | 2011-09-21 02:46:06 +0000 |
commit | 243f108a7c5dc4733e9ef6b7b7c2cd0465cf2104 (patch) | |
tree | 7a77ee9f7305aba40498331547d32a4422ab8e57 /lib/CodeGen/CGObjCGNU.cpp | |
parent | 7ec0258505a11e7e8229d2c96507be6bbc40d7c1 (diff) |
Change "ivar" to true for a boolean function argument. Since string literals are cast to true, this should no effect on behavior.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140231 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGObjCGNU.cpp')
-rw-r--r-- | lib/CodeGen/CGObjCGNU.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/CodeGen/CGObjCGNU.cpp b/lib/CodeGen/CGObjCGNU.cpp index ae05c3947b..b7855c85a2 100644 --- a/lib/CodeGen/CGObjCGNU.cpp +++ b/lib/CodeGen/CGObjCGNU.cpp @@ -2389,7 +2389,8 @@ llvm::GlobalVariable *CGObjCGNU::ObjCIvarOffsetVariable( Offset = ComputeIvarBaseOffset(CGM, ID, Ivar); llvm::ConstantInt *OffsetGuess = - llvm::ConstantInt::get(llvm::Type::getInt32Ty(VMContext), Offset, "ivar"); + llvm::ConstantInt::get(llvm::Type::getInt32Ty(VMContext), Offset, + /*isSigned*/true); // 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 @@ -2457,7 +2458,7 @@ llvm::Value *CGObjCGNU::EmitIvarOffset(CodeGenFunction &CGF, return CGF.Builder.CreateLoad(Offset); } uint64_t Offset = ComputeIvarBaseOffset(CGF.CGM, Interface, Ivar); - return llvm::ConstantInt::get(PtrDiffTy, Offset, "ivar"); + return llvm::ConstantInt::get(PtrDiffTy, Offset, /*isSigned*/true); } CGObjCRuntime * |