From: Daniel Dunbar Date: Wed, 4 Feb 2009 00:55:44 +0000 (+0000) Subject: Update passing of _Bool values to match what function was declared to take. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=be395f6b29762c37938637ffef5f59514e04751a;p=clang 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 --- 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()));