parent
edb1dc8498
commit
139474d498
|
@ -4467,7 +4467,7 @@ public:
|
|||
const DeclSpec &DS,
|
||||
SourceLocation IdLoc,
|
||||
SourceLocation LParenLoc,
|
||||
Expr **Args, unsigned NumArgs,
|
||||
ArrayRef<Expr *> Args,
|
||||
SourceLocation RParenLoc,
|
||||
SourceLocation EllipsisLoc);
|
||||
|
||||
|
|
|
@ -2809,9 +2809,8 @@ Parser::MemInitResult Parser::ParseMemInitializer(Decl *ConstructorDecl) {
|
|||
|
||||
return Actions.ActOnMemInitializer(ConstructorDecl, getCurScope(), SS, II,
|
||||
TemplateTypeTy, DS, IdLoc,
|
||||
T.getOpenLocation(), ArgExprs.data(),
|
||||
ArgExprs.size(), T.getCloseLocation(),
|
||||
EllipsisLoc);
|
||||
T.getOpenLocation(), ArgExprs,
|
||||
T.getCloseLocation(), EllipsisLoc);
|
||||
}
|
||||
|
||||
Diag(Tok, getLangOpts().CPlusPlus11 ? diag::err_expected_lparen_or_lbrace
|
||||
|
|
|
@ -2254,12 +2254,11 @@ Sema::ActOnMemInitializer(Decl *ConstructorD,
|
|||
const DeclSpec &DS,
|
||||
SourceLocation IdLoc,
|
||||
SourceLocation LParenLoc,
|
||||
Expr **Args, unsigned NumArgs,
|
||||
ArrayRef<Expr *> Args,
|
||||
SourceLocation RParenLoc,
|
||||
SourceLocation EllipsisLoc) {
|
||||
Expr *List = new (Context) ParenListExpr(Context, LParenLoc,
|
||||
llvm::makeArrayRef(Args, NumArgs),
|
||||
RParenLoc);
|
||||
Args, RParenLoc);
|
||||
return BuildMemInitializer(ConstructorD, S, SS, MemberOrBase, TemplateTypeTy,
|
||||
DS, IdLoc, List, EllipsisLoc);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue