swift
swift copied to clipboard
[6.1] Explicitly use minimal type expansion for autodiff-related types
- Explanation: As autodiff happens on function types it is not in general possible to determine the real expansion context of the function being differentiated. Use of minimal context is a conservative approach that should work even when libraty evolution mode is enabled.
Fixes https://github.com/swiftlang/swift/issues/55179
- Scope: Only affects autodiff code.
- Issues: https://github.com/swiftlang/swift/issues/55179
- Original PRs: https://github.com/swiftlang/swift/pull/77831
- Risk: Low.
- Testing: Since merging the original, the added test case continues to pass on main branch.
PASS: Swift(macosx-x86_64) :: AutoDiff/compiler_crashers_fixed/issue-55179-library-evolution.swift (184 of 18701)
- Reviewers: @asl @rxwei
cc @JaapWijnen
@swift-ci Please test
@swift-ci please test macOS
Ping @rxwei
Any concerns taking this for 6.1?
Closing since we have an official 6.1 release.