summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen
diff options
context:
space:
mode:
authorRichard Trieu <rtrieu@google.com>2011-09-21 02:46:06 +0000
committerRichard Trieu <rtrieu@google.com>2011-09-21 02:46:06 +0000
commite4f3180feca5f15c62b8a295bc54ba4eae4ea1ca (patch)
tree1f431dfc70429b4bcc510e843d3e8cfdd0b2df40 /clang/lib/CodeGen
parent6de4d12120ca5107b0dd9c74fa7c84211fd1a141 (diff)
downloadbcm5719-llvm-e4f3180feca5f15c62b8a295bc54ba4eae4ea1ca.tar.gz
bcm5719-llvm-e4f3180feca5f15c62b8a295bc54ba4eae4ea1ca.zip
Change "ivar" to true for a boolean function argument. Since string literals are cast to true, this should no effect on behavior.
llvm-svn: 140231
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r--clang/lib/CodeGen/CGObjCGNU.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGObjCGNU.cpp b/clang/lib/CodeGen/CGObjCGNU.cpp
index ae05c3947b1..b7855c85a2b 100644
--- a/clang/lib/CodeGen/CGObjCGNU.cpp
+++ b/clang/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 *
OpenPOWER on IntegriCloud