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 {
162
162
// / Change the parent of this context. This is necessary because
163
163
// / the function signature is parsed before the function
164
164
// / declaration/expression itself is built.
165
- void changeFunction (DeclContext *parent, MutableArrayRef <ParameterList *> paramLists);
165
+ void changeFunction (DeclContext *parent, ArrayRef <ParameterList *> paramLists);
166
166
167
167
static bool classof (const DeclContext *DC) {
168
168
if (auto init = dyn_cast<Initializer>(DC))
Original file line number Diff line number Diff line change @@ -1025,7 +1025,7 @@ class Parser {
1025
1025
1026
1026
// / Set the parsed context for all the initializers to the given
1027
1027
// / function.
1028
- void setFunctionContext (DeclContext *DC, MutableArrayRef <ParameterList *> paramList);
1028
+ void setFunctionContext (DeclContext *DC, ArrayRef <ParameterList *> paramList);
1029
1029
1030
1030
DefaultArgumentInfo (bool inTypeContext) {
1031
1031
NextIndex = inTypeContext ? 1 : 0 ;
Original file line number Diff line number Diff line change @@ -4554,7 +4554,7 @@ void ParamDecl::setDefaultArgumentInitContext(Initializer *initContext) {
4554
4554
}
4555
4555
4556
4556
void DefaultArgumentInitializer::changeFunction (
4557
- DeclContext *parent, MutableArrayRef <ParameterList *> paramLists) {
4557
+ DeclContext *parent, ArrayRef <ParameterList *> paramLists) {
4558
4558
if (parent->isLocalContext ()) {
4559
4559
setParent (parent);
4560
4560
}
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ static DefaultArgumentKind getDefaultArgKind(Expr *init) {
57
57
}
58
58
59
59
void Parser::DefaultArgumentInfo::setFunctionContext (
60
- DeclContext *DC, MutableArrayRef <ParameterList *> paramList){
60
+ DeclContext *DC, ArrayRef <ParameterList *> paramList){
61
61
for (auto context : ParsedContexts) {
62
62
context->changeFunction (DC, paramList);
63
63
}
You can’t perform that action at this time.
0 commit comments