-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Fix some problems in ClangTypeConverter::getFunctionType #28726
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
Fix some problems in ClangTypeConverter::getFunctionType #28726
Conversation
@swift-ci please smoke test |
Oops, this broke pointer equality as we create a duplicate function type. |
I think there are two options here: (a) @slavapestov's solution is suboptimal (I guess we don't check for equality there, so it only increases memory usage due to missed uniquing but doesn't affect correctness) or (b) this is a Clang bug where the |
@swift-ci please smoke test |
The middle commit now makes sure that we add the @swift-ci please smoke 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.
LGTM, thanks!
Includes the fix for the thing pointed out in #28527.