[cfe-commits] r140231 - /cfe/trunk/lib/CodeGen/CGObjCGNU.cpp
Richard Trieu
rtrieu at google.com
Tue Sep 20 19:46:07 PDT 2011
Author: rtrieu
Date: Tue Sep 20 21:46:06 2011
New Revision: 140231
URL: http://llvm.org/viewvc/llvm-project?rev=140231&view=rev
Log:
Change "ivar" to true for a boolean function argument. Since string literals are cast to true, this should no effect on behavior.
Modified:
cfe/trunk/lib/CodeGen/CGObjCGNU.cpp
Modified: cfe/trunk/lib/CodeGen/CGObjCGNU.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGObjCGNU.cpp?rev=140231&r1=140230&r2=140231&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGObjCGNU.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGObjCGNU.cpp Tue Sep 20 21:46:06 2011
@@ -2389,7 +2389,8 @@
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 @@
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 *
More information about the cfe-commits
mailing list