From c57d34bc3566d0ed2dca22b3b74267a10dcef083 Mon Sep 17 00:00:00 2001 From: Sebastian Redl Date: Tue, 20 Jul 2010 04:20:21 +0000 Subject: Update ImplicitCastExpr to be able to represent an XValue. llvm-svn: 108807 --- clang/lib/CodeGen/CGObjC.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'clang/lib/CodeGen/CGObjC.cpp') diff --git a/clang/lib/CodeGen/CGObjC.cpp b/clang/lib/CodeGen/CGObjC.cpp index e735a617546..5eed0b6465a 100644 --- a/clang/lib/CodeGen/CGObjC.cpp +++ b/clang/lib/CodeGen/CGObjC.cpp @@ -404,7 +404,8 @@ void CodeGenFunction::GenerateObjCSetter(ObjCImplementationDecl *IMP, if (getContext().getCanonicalType(Ivar->getType()) != getContext().getCanonicalType(ArgDecl->getType())) { ImplicitCastExpr ArgCasted(Ivar->getType(), CastExpr::CK_BitCast, &Arg, - CXXBaseSpecifierArray(), false); + CXXBaseSpecifierArray(), + ImplicitCastExpr::RValue); BinaryOperator Assign(&IvarRef, &ArgCasted, BinaryOperator::Assign, Ivar->getType(), Loc); EmitStmt(&Assign); -- cgit v1.2.3