diff options
| author | Sebastian Redl <sebastian.redl@getdesigned.at> | 2010-07-20 04:20:21 +0000 | 
|---|---|---|
| committer | Sebastian Redl <sebastian.redl@getdesigned.at> | 2010-07-20 04:20:21 +0000 | 
| commit | c57d34bc3566d0ed2dca22b3b74267a10dcef083 (patch) | |
| tree | a09932c20e137d0b6c0158e587db3c278464dcf7 /clang/lib/Sema/SemaDeclCXX.cpp | |
| parent | 08d047666a81bca31c39fb071c2c81cc93854a46 (diff) | |
| download | bcm5719-llvm-c57d34bc3566d0ed2dca22b3b74267a10dcef083.tar.gz bcm5719-llvm-c57d34bc3566d0ed2dca22b3b74267a10dcef083.zip | |
Update ImplicitCastExpr to be able to represent an XValue.
llvm-svn: 108807
Diffstat (limited to 'clang/lib/Sema/SemaDeclCXX.cpp')
| -rw-r--r-- | clang/lib/Sema/SemaDeclCXX.cpp | 10 | 
1 files changed, 5 insertions, 5 deletions
| diff --git a/clang/lib/Sema/SemaDeclCXX.cpp b/clang/lib/Sema/SemaDeclCXX.cpp index bd97df2ce9d..1927aad4eac 100644 --- a/clang/lib/Sema/SemaDeclCXX.cpp +++ b/clang/lib/Sema/SemaDeclCXX.cpp @@ -1536,9 +1536,9 @@ BuildImplicitBaseInitializer(Sema &SemaRef, CXXConstructorDecl *Constructor,      QualType ArgTy =         SemaRef.Context.getQualifiedType(BaseSpec->getType().getUnqualifiedType(),                                          ParamType.getQualifiers()); -    SemaRef.ImpCastExprToType(CopyCtorArg, ArgTy,  +    SemaRef.ImpCastExprToType(CopyCtorArg, ArgTy,                                CastExpr::CK_UncheckedDerivedToBase, -                              /*isLvalue=*/true,  +                              ImplicitCastExpr::LValue,                                CXXBaseSpecifierArray(BaseSpec));      InitializationKind InitKind @@ -4858,8 +4858,8 @@ void Sema::DefineImplicitCopyAssignment(SourceLocation CurrentLocation,      // appropriately-qualified base type.      Expr *From = OtherRef->Retain();      ImpCastExprToType(From, Context.getQualifiedType(BaseType, OtherQuals), -                      CastExpr::CK_UncheckedDerivedToBase, /*isLvalue=*/true,  -                      CXXBaseSpecifierArray(Base)); +                      CastExpr::CK_UncheckedDerivedToBase, +                      ImplicitCastExpr::LValue, CXXBaseSpecifierArray(Base));      // Dereference "this".      OwningExprResult To = CreateBuiltinUnaryOp(Loc, UnaryOperator::Deref, @@ -4871,7 +4871,7 @@ void Sema::DefineImplicitCopyAssignment(SourceLocation CurrentLocation,                        Context.getCVRQualifiedType(BaseType,                                        CopyAssignOperator->getTypeQualifiers()),                        CastExpr::CK_UncheckedDerivedToBase,  -                      /*isLvalue=*/true, CXXBaseSpecifierArray(Base)); +                      ImplicitCastExpr::LValue, CXXBaseSpecifierArray(Base));      To = Owned(ToE);      // Build the copy. | 

