mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Serialize/deserialize lifetime dependencies on enum elements
This commit is contained in:
@@ -5021,6 +5021,14 @@ public:
|
||||
nameComponentsAndDependencies);
|
||||
if (auto *PL = elem->getParameterList())
|
||||
writeParameterList(PL);
|
||||
|
||||
auto fnType = ty->getAs<AnyFunctionType>();
|
||||
if (fnType) {
|
||||
auto lifetimeDependencies = fnType->getLifetimeDependencies();
|
||||
if (!lifetimeDependencies.empty()) {
|
||||
S.writeLifetimeDependencies(lifetimeDependencies);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void visitSubscriptDecl(const SubscriptDecl *subscript) {
|
||||
|
||||
Reference in New Issue
Block a user