[Gardening] Fix some set but not used variables

This commit is contained in:
Anthony Latsis
2025-01-19 23:11:51 +00:00
parent 71015c674b
commit a84dfc8387
89 changed files with 169 additions and 181 deletions

View File

@@ -477,7 +477,7 @@ static LinkageLimit getLinkageLimit(SILDeclRef constant) {
return Limit::OnDemand;
}
if (auto dd = dyn_cast<DestructorDecl>(d)) {
if (isa<DestructorDecl>(d)) {
// The destructor of a class implemented with @_objcImplementation is only
// ever called by its ObjC thunk, so it should not be public.
if (d->getDeclContext()->getSelfNominalTypeDecl()->hasClangNode())