-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Emit reabstraction thunks for implicit conversions between T.TangentType and Optional<T>.TangentType #78076
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
Conversation
Tagging @JaapWijnen |
49b7a36
to
5a68861
Compare
@swift-ci Please test |
@swift-ci please test |
b47b157
to
5382e52
Compare
@swift-ci please test |
@hamishknight I believe I addressed all the comments. Also added test for address-only type conversion |
@swift-ci please test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! LGTM modulo a couple of nits, but nothing blocking
@swift-ci please test |
Let's check if CI is healthy on |
@swift-ci please test linux |
@slavapestov Please let me know if you're having further comments here, or if this PR is good to go |
@swift-ci please test |
8b07cae
to
c6cc675
Compare
@swift-ci please test |
@slavapestov will you please take a look when you will have a chance? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I didn't get notifications about your pings for some reason.
candidateModule->isStdlibModule()) { | ||
assert(!constructorDecl && "Multiple `Optional.TangentVector.init`s"); | ||
constructorDecl = cast<ConstructorDecl>(candidate); | ||
#ifdef NDEBUG |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For future PRs: we're trying to get away from conditional asserts. Instead, use ASSERT
and avoid #ifdef NDEBUG
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah ok, wasn't aware of this, thanks!
@swift-ci please smoke test |
…ype and Optional<T>.TangentType (swiftlang#78076) (cherry picked from commit 1e7a1d9)
Fixes #77871