Skip to content

[IRGen] Use addCompactFunctionReference for dynamic replacement #69058

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

kateinoigakukun
Copy link
Member

@kateinoigakukun kateinoigakukun commented Oct 9, 2023

This repairs dynamic_replaceable_opaque_return_type_parameter.swift test on WebAssembly.

The function pointer field triggered assertion when targeting some triples using absolute 32bit function pointer https://github.com/apple/swift/blob/e253ca9c764801bcac36e5db0734335eba00ba10/lib/IRGen/ConstantBuilder.h#L115-L116

This repairs dynamic_replaceable_opaque_return_type_parameter.swift test
on WebAssembly.
@kateinoigakukun
Copy link
Member Author

@swift-ci Please smoke test

@kateinoigakukun kateinoigakukun marked this pull request as ready for review October 9, 2023 14:47
@kateinoigakukun kateinoigakukun merged commit 8b5e0b8 into swiftlang:main Oct 9, 2023
@kateinoigakukun kateinoigakukun deleted the pr-e02f83f5dfca816f3961e7cf6e06a98b2816e77c branch October 9, 2023 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant