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
This commit is contained in:
Richard Trieu 2011-09-21 02:46:06 +00:00
parent 6de4d12120
commit e4f3180fec
1 changed files with 3 additions and 2 deletions

View File

@ -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 *