[NFC] Drop mutability from parameter context changes

Refactoring in this area means we no longer mutate the array, just
call non-const members on the elements.
This commit is contained in:
Robert Widmann
2018-05-24 12:15:11 -07:00
parent c773a0ab9a
commit 28a8fb1c0b
4 changed files with 4 additions and 4 deletions

View File

@@ -57,7 +57,7 @@ static DefaultArgumentKind getDefaultArgKind(Expr *init) {
}
void Parser::DefaultArgumentInfo::setFunctionContext(
DeclContext *DC, MutableArrayRef<ParameterList *> paramList){
DeclContext *DC, ArrayRef<ParameterList *> paramList){
for (auto context : ParsedContexts) {
context->changeFunction(DC, paramList);
}