diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-02-04 00:55:44 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-02-04 00:55:44 +0000 |
commit | be395f6b29762c37938637ffef5f59514e04751a (patch) | |
tree | 5c91b5dc8094459694dbb0b9516a6733f9390890 /lib/CodeGen/CGObjC.cpp | |
parent | 34c94a2babcac200c8e0fd778e549afcc43e2df1 (diff) |
Update passing of _Bool values to match what function was declared to take.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63697 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGObjC.cpp')
-rw-r--r-- | lib/CodeGen/CGObjC.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/CodeGen/CGObjC.cpp b/lib/CodeGen/CGObjC.cpp index 1443f2e4e9..628114c99e 100644 --- a/lib/CodeGen/CGObjC.cpp +++ b/lib/CodeGen/CGObjC.cpp @@ -177,7 +177,7 @@ void CodeGenFunction::GenerateObjCGetter(ObjCImplementationDecl *IMP, Builder.CreateBitCast(LoadObjCSelf(), Types.ConvertType(IdTy)); llvm::Value *Offset = EmitIvarOffset(IMP->getClassInterface(), Ivar); llvm::Value *True = - llvm::ConstantInt::get(Types.ConvertTypeForMem(getContext().BoolTy), 1); + llvm::ConstantInt::get(Types.ConvertType(getContext().BoolTy), 1); CallArgList Args; Args.push_back(std::make_pair(RValue::get(SelfAsId), IdTy)); Args.push_back(std::make_pair(RValue::get(CmdVal), Cmd->getType())); @@ -259,9 +259,9 @@ void CodeGenFunction::GenerateObjCSetter(ObjCImplementationDecl *IMP, Builder.CreateBitCast(Builder.CreateLoad(Arg, "arg"), Types.ConvertType(IdTy)); llvm::Value *True = - llvm::ConstantInt::get(Types.ConvertTypeForMem(getContext().BoolTy), 1); + llvm::ConstantInt::get(Types.ConvertType(getContext().BoolTy), 1); llvm::Value *False = - llvm::ConstantInt::get(Types.ConvertTypeForMem(getContext().BoolTy), 0); + llvm::ConstantInt::get(Types.ConvertType(getContext().BoolTy), 0); CallArgList Args; Args.push_back(std::make_pair(RValue::get(SelfAsId), IdTy)); Args.push_back(std::make_pair(RValue::get(CmdVal), Cmd->getType())); |