mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Serialize/deserialize lifetime dependencies on enum elements
This commit is contained in:
@@ -5014,6 +5014,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