mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Add serialization/deserialization support to lifetime depedence on initializers
This commit is contained in:
@@ -4783,6 +4783,12 @@ public:
|
||||
writeGenericParams(ctor->getGenericParams());
|
||||
writeParameterList(ctor->getParameters());
|
||||
|
||||
auto fnType = ty->getAs<FunctionType>();
|
||||
if (fnType && fnType->hasLifetimeDependenceInfo()) {
|
||||
assert(!fnType->getLifetimeDependenceInfo().empty());
|
||||
writeLifetimeDependenceInfo(fnType->getLifetimeDependenceInfo());
|
||||
}
|
||||
|
||||
if (auto errorConvention = ctor->getForeignErrorConvention())
|
||||
writeForeignErrorConvention(*errorConvention);
|
||||
if (auto asyncConvention = ctor->getForeignAsyncConvention())
|
||||
|
||||
Reference in New Issue
Block a user