Skip to content

[Runtime] Fix AbsoluteFuncPtr to allow template parameter inference #70878

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

AbsoluteFunctionPointer was not able to be passed to a function that takes a TargetCompactFunctionPointer because the template parameters Nullable and Offset were not parameterized by AbsoluteFunctionPointer.

29c350e introduced the first such function InProcessReaderWriter::resolveFunctionPointer and it revealed this issue.

This only affects WebAssembly build ATM.

`AbsoluteFunctionPointer` was not able to be passed to a function that
takes a `TargetCompactFunctionPointer` because the template parameters
`Nullable` and `Offset` were not parameterized by `AbsoluteFunctionPointer`.

29c350e introduced the first such
function `InProcessReaderWriter::resolveFunctionPointer` and it revealed
this issue.
@kateinoigakukun
Copy link
Member Author

@swift-ci Please smoke test

@kateinoigakukun kateinoigakukun merged commit ff93822 into swiftlang:main Jan 12, 2024
@kateinoigakukun kateinoigakukun deleted the pr-02f4c271b06b6ca3f0607bf3b7d5051130b61b08 branch January 12, 2024 17:57
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