File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed
Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -162,7 +162,7 @@ class DefaultArgumentInitializer : public Initializer {
162162 // / Change the parent of this context. This is necessary because
163163 // / the function signature is parsed before the function
164164 // / declaration/expression itself is built.
165- void changeFunction (DeclContext *parent, MutableArrayRef <ParameterList *> paramLists);
165+ void changeFunction (DeclContext *parent, ArrayRef <ParameterList *> paramLists);
166166
167167 static bool classof (const DeclContext *DC) {
168168 if (auto init = dyn_cast<Initializer>(DC))
Original file line number Diff line number Diff line change @@ -1025,7 +1025,7 @@ class Parser {
10251025
10261026 // / Set the parsed context for all the initializers to the given
10271027 // / function.
1028- void setFunctionContext (DeclContext *DC, MutableArrayRef <ParameterList *> paramList);
1028+ void setFunctionContext (DeclContext *DC, ArrayRef <ParameterList *> paramList);
10291029
10301030 DefaultArgumentInfo (bool inTypeContext) {
10311031 NextIndex = inTypeContext ? 1 : 0 ;
Original file line number Diff line number Diff line change @@ -4554,7 +4554,7 @@ void ParamDecl::setDefaultArgumentInitContext(Initializer *initContext) {
45544554}
45554555
45564556void DefaultArgumentInitializer::changeFunction (
4557- DeclContext *parent, MutableArrayRef <ParameterList *> paramLists) {
4557+ DeclContext *parent, ArrayRef <ParameterList *> paramLists) {
45584558 if (parent->isLocalContext ()) {
45594559 setParent (parent);
45604560 }
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ static DefaultArgumentKind getDefaultArgKind(Expr *init) {
5757}
5858
5959void Parser::DefaultArgumentInfo::setFunctionContext (
60- DeclContext *DC, MutableArrayRef <ParameterList *> paramList){
60+ DeclContext *DC, ArrayRef <ParameterList *> paramList){
6161 for (auto context : ParsedContexts) {
6262 context->changeFunction (DC, paramList);
6363 }
You can’t perform that action at this time.
0 commit comments