From e302792b6155bb195f88610a1ebde38343cf402e Mon Sep 17 00:00:00 2001 From: John McCall Date: Wed, 25 Aug 2010 11:45:40 +0000 Subject: GCC didn't care for my attempt at API compatibility, so brute-force everything to the new constants. llvm-svn: 112047 --- clang/lib/CodeGen/CGObjC.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'clang/lib/CodeGen/CGObjC.cpp') diff --git a/clang/lib/CodeGen/CGObjC.cpp b/clang/lib/CodeGen/CGObjC.cpp index 1c12d7f1adb..6a6d63df8f5 100644 --- a/clang/lib/CodeGen/CGObjC.cpp +++ b/clang/lib/CodeGen/CGObjC.cpp @@ -404,13 +404,13 @@ void CodeGenFunction::GenerateObjCSetter(ObjCImplementationDecl *IMP, if (getContext().getCanonicalType(Ivar->getType()) != getContext().getCanonicalType(ArgDecl->getType())) { ImplicitCastExpr ArgCasted(ImplicitCastExpr::OnStack, - Ivar->getType(), CastExpr::CK_BitCast, &Arg, + Ivar->getType(), CK_BitCast, &Arg, VK_RValue); - BinaryOperator Assign(&IvarRef, &ArgCasted, BinaryOperator::Assign, + BinaryOperator Assign(&IvarRef, &ArgCasted, BO_Assign, Ivar->getType(), Loc); EmitStmt(&Assign); } else { - BinaryOperator Assign(&IvarRef, &Arg, BinaryOperator::Assign, + BinaryOperator Assign(&IvarRef, &Arg, BO_Assign, Ivar->getType(), Loc); EmitStmt(&Assign); } -- cgit v1.2.3