mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Ensure that we wire up *all* custom attribute initializer contexts
Thank you again, Rintaro
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user