Merge remote-tracking branch 'origin/main' into rebranch

This commit is contained in:
swift-ci
2025-09-22 18:21:46 -07:00
19 changed files with 434 additions and 84 deletions

View File

@@ -2948,8 +2948,7 @@ FuncDecl *SwiftDeclSynthesizer::findExplicitDestroy(
if (!destroyFuncName.consume_front("destroy:"))
continue;
auto decls = getValueDeclsForName(
clangType, nominal->getASTContext(), destroyFuncName);
auto decls = getValueDeclsForName(nominal, destroyFuncName);
for (auto decl : decls) {
auto func = dyn_cast<FuncDecl>(decl);
if (!func)