[ASTScopes] Remove ModuleDecl param from findChildContaining

This is no longer necessary.
This commit is contained in:
Hamish Knight
2025-12-15 17:38:03 +00:00
parent cef53c61d4
commit 0ad231fb82
4 changed files with 20 additions and 33 deletions

View File

@@ -286,8 +286,7 @@ void ASTSourceFileScope::expandFunctionBody(AbstractFunctionDecl *AFD) {
auto sr = AFD->getOriginalBodySourceRange();
if (sr.isInvalid())
return;
ASTScopeImpl *bodyScope =
findInnermostEnclosingScope(AFD->getParentModule(), sr.Start, nullptr);
ASTScopeImpl *bodyScope = findInnermostEnclosingScope(sr.Start, nullptr);
if (!bodyScope->getWasExpanded())
bodyScope->expandAndBeCurrent(*scopeCreator);
}