Skip to content

[AutoDiff] Fix custom derivative thunk for Optional #71721

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 6, 2024

Conversation

asavonic
Copy link
Contributor

The patch fixes the issue #55882 and enables the nil coalescing operator (aka ??) for Optional type.

@asl
Copy link
Contributor

asl commented Feb 19, 2024

@swift-ci please test

@asl
Copy link
Contributor

asl commented Feb 19, 2024

Tagging @BradLarson @rxwei

@asl
Copy link
Contributor

asl commented Feb 19, 2024

@swift-ci please test

@asl asl added the AutoDiff label May 30, 2024
@asl asl force-pushed the optional-nil-coalescing branch from 6f14cf2 to e763422 Compare May 31, 2024 20:58
@asl
Copy link
Contributor

asl commented May 31, 2024

@swift-ci please test

asavonic and others added 2 commits June 5, 2024 17:03
The patch fixes the issue swiftlang#55882 and enables the nil coalescing operator
(aka `??`) for Optional type.
empty JVPs / VJPs has the same linkage as the original function
sans external flag and also inherit serialization flag. This works
for all cases but not for hidden_external ones. Drop serializable
flag for such case
@asl asl force-pushed the optional-nil-coalescing branch from e763422 to c653a7d Compare June 6, 2024 00:03
@asl
Copy link
Contributor

asl commented Jun 6, 2024

@swift-ci please test

@asl asl enabled auto-merge (squash) June 6, 2024 06:12
@asl asl linked an issue Jun 6, 2024 that may be closed by this pull request
@asl asl merged commit aa5dddb into swiftlang:main Jun 6, 2024
5 checks passed
MaxDesiatov added a commit that referenced this pull request Jun 10, 2024
MaxDesiatov added a commit that referenced this pull request Jun 10, 2024
MaxDesiatov added a commit that referenced this pull request Jun 11, 2024
…#74268)

This reverts commit aa5dddb.

Fixes `preset=buildbot,tools=RA,stdlib=DA` CI job, which without this revert fails on `AutoDiff/SILGen/nil_coalescing.swift` test.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[SR-13440] SILGen crash for ?? nil coalescing derivative registration
3 participants