[cfe-commits] r63697 - /cfe/trunk/lib/CodeGen/CGObjC.cpp

Daniel Dunbar daniel at zuster.org
Tue Feb 3 16:55:44 PST 2009


Author: ddunbar
Date: Tue Feb  3 18:55:44 2009
New Revision: 63697

URL: http://llvm.org/viewvc/llvm-project?rev=63697&view=rev
Log:
Update passing of _Bool values to match what function was declared to take.

Modified:
    cfe/trunk/lib/CodeGen/CGObjC.cpp

Modified: cfe/trunk/lib/CodeGen/CGObjC.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGObjC.cpp?rev=63697&r1=63696&r2=63697&view=diff

==============================================================================
--- cfe/trunk/lib/CodeGen/CGObjC.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGObjC.cpp Tue Feb  3 18:55:44 2009
@@ -177,7 +177,7 @@
       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 @@
       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()));





More information about the cfe-commits mailing list