@@ -2833,7 +2833,7 @@ Sema::BuildDelegatingInitializer(TypeSourceInfo *TInfo, Expr *Init,
2833
2833
// initializer. However, deconstructing the ASTs is a dicey process,
2834
2834
// and this approach is far more likely to get the corner cases right.
2835
2835
if (CurContext->isDependentContext())
2836
- DelegationInit = Owned( Init) ;
2836
+ DelegationInit = Init;
2837
2837
2838
2838
return new (Context) CXXCtorInitializer(Context, TInfo, InitRange.getBegin(),
2839
2839
DelegationInit.getAs<Expr>(),
@@ -2962,7 +2962,7 @@ Sema::BuildBaseInitializer(QualType BaseType, TypeSourceInfo *BaseTInfo,
2962
2962
// initializer. However, deconstructing the ASTs is a dicey process,
2963
2963
// and this approach is far more likely to get the corner cases right.
2964
2964
if (CurContext->isDependentContext())
2965
- BaseInit = Owned( Init) ;
2965
+ BaseInit = Init;
2966
2966
2967
2967
return new (Context) CXXCtorInitializer(Context, BaseTInfo,
2968
2968
BaseSpec->isVirtual(),
@@ -9030,7 +9030,7 @@ buildMemcpyForAssignmentOp(Sema &S, SourceLocation Loc, QualType T,
9030
9030
Loc, CallArgs, Loc);
9031
9031
9032
9032
assert(!Call.isInvalid() && "Call to __builtin_memcpy cannot fail!");
9033
- return S.Owned( Call.getAs<Stmt>() );
9033
+ return Call.getAs<Stmt>();
9034
9034
}
9035
9035
9036
9036
/// \brief Builds a statement that copies/moves the given entity from \p From to
@@ -10585,12 +10585,11 @@ Sema::BuildCXXConstructExpr(SourceLocation ConstructLoc, QualType DeclInitType,
10585
10585
unsigned ConstructKind,
10586
10586
SourceRange ParenRange) {
10587
10587
MarkFunctionReferenced(ConstructLoc, Constructor);
10588
- return Owned(CXXConstructExpr::Create(Context, DeclInitType, ConstructLoc,
10589
- Constructor, Elidable, ExprArgs,
10590
- HadMultipleCandidates,
10591
- IsListInitialization, RequiresZeroInit,
10592
- static_cast<CXXConstructExpr::ConstructionKind>(ConstructKind),
10593
- ParenRange));
10588
+ return CXXConstructExpr::Create(
10589
+ Context, DeclInitType, ConstructLoc, Constructor, Elidable, ExprArgs,
10590
+ HadMultipleCandidates, IsListInitialization, RequiresZeroInit,
10591
+ static_cast<CXXConstructExpr::ConstructionKind>(ConstructKind),
10592
+ ParenRange);
10594
10593
}
10595
10594
10596
10595
void Sema::FinalizeVarWithDestructor(VarDecl *VD, const RecordType *Record) {
0 commit comments