mirror of
https://github.com/apple/swift.git
synced 2026-02-27 18:26:24 +01:00
To a function type's lifetimes, a base version of the type is first created with no lifetime dependence info. This is then passed to the dependence checker, and the resulting dependencies are added to it. It would be possible to do this analysis by passing just the parameter list and result type (which are available before the type is created), but this approach lets us avoid dealing with a header inclusion cycle between Types.h, ExtInfo.h, and LifetimeDependence.h, since it does not require AnyFunctionType::Param to be defined in LifetimeDependence.h.