mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge remote-tracking branch 'origin/main' into rebranch
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user