Ensure that we wire up *all* custom attribute initializer contexts

Thank you again, Rintaro
This commit is contained in:
Doug Gregor
2024-12-06 22:47:00 -08:00
parent 02a20ded57
commit d004d24560
5 changed files with 16 additions and 28 deletions

View File

@@ -2881,13 +2881,3 @@ bool swift::hasAttribute(const LangOptions &langOpts,
return false;
}
CustomAttributeInitializer *
DeclAttributes::findCustomAttributeInitializer() const {
for (auto custom : getAttributes<CustomAttr>()) {
if (auto initContext = custom->getInitContext())
return initContext;
}
return nullptr;
}