@@ -3883,25 +3883,21 @@ GenericSelectionExpr::GenericSelectionExpr(const ASTContext &Context,
38833883 std::copy (AssocExprs.begin (), AssocExprs.end (), SubExprs+END_EXPR);
38843884}
38853885
3886- GenericSelectionExpr::GenericSelectionExpr (const ASTContext &Context,
3887- SourceLocation GenericLoc, Expr *ControllingExpr,
3888- ArrayRef<TypeSourceInfo*> AssocTypes,
3889- ArrayRef<Expr*> AssocExprs,
3890- SourceLocation DefaultLoc,
3891- SourceLocation RParenLoc,
3892- bool ContainsUnexpandedParameterPack)
3893- : Expr(GenericSelectionExprClass,
3894- Context.DependentTy,
3895- VK_RValue,
3896- OK_Ordinary,
3897- /* isTypeDependent=*/ true ,
3898- /* isValueDependent=*/ true ,
3899- /* isInstantiationDependent=*/ true ,
3900- ContainsUnexpandedParameterPack),
3901- AssocTypes(new (Context) TypeSourceInfo*[AssocTypes.size()]),
3902- SubExprs(new (Context) Stmt*[END_EXPR+AssocExprs.size()]),
3903- NumAssocs(AssocExprs.size()), ResultIndex(-1U ), GenericLoc(GenericLoc),
3904- DefaultLoc(DefaultLoc), RParenLoc(RParenLoc) {
3886+ GenericSelectionExpr::GenericSelectionExpr (
3887+ const ASTContext &Context, SourceLocation GenericLoc, Expr *ControllingExpr,
3888+ ArrayRef<TypeSourceInfo *> AssocTypes, ArrayRef<Expr *> AssocExprs,
3889+ SourceLocation DefaultLoc, SourceLocation RParenLoc,
3890+ bool ContainsUnexpandedParameterPack)
3891+ : Expr(GenericSelectionExprClass, Context.DependentTy, VK_RValue,
3892+ OK_Ordinary,
3893+ /* isTypeDependent=*/ true ,
3894+ /* isValueDependent=*/ true ,
3895+ /* isInstantiationDependent=*/ true , ContainsUnexpandedParameterPack),
3896+ AssocTypes(new (Context) TypeSourceInfo *[AssocTypes.size()]),
3897+ SubExprs(new (Context) Stmt *[END_EXPR + AssocExprs.size()]),
3898+ NumAssocs(AssocExprs.size()),
3899+ ResultIndex(std::numeric_limits<unsigned >::max()), GenericLoc(GenericLoc),
3900+ DefaultLoc(DefaultLoc), RParenLoc(RParenLoc) {
39053901 SubExprs[CONTROLLING] = ControllingExpr;
39063902 assert (AssocTypes.size () == AssocExprs.size ());
39073903 std::copy (AssocTypes.begin (), AssocTypes.end (), this ->AssocTypes );
0 commit comments