Skip to content

[IRGen] RuntimeMetadata: Reference type descriptors indirectly when required #62850

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

Conversation

xedin
Copy link
Contributor

@xedin xedin commented Jan 4, 2023

Type descriptors cannot always be referenced directly (i.e. when
a type is declared in a different module), so let's use
getAddrOfLLVMVariableOrGOTEquivalent facility that knows how
to handle that correctly.

Resolves: rdar://problem/103878515

This is due to the fact that IRGen has been switched to use `getTypeRef`.
@xedin
Copy link
Contributor Author

xedin commented Jan 4, 2023

@swift-ci please smoke test

@xedin
Copy link
Contributor Author

xedin commented Jan 4, 2023

@swift-ci please build toolchain macOS platform

…equired

Type descriptors cannot always be referenced directly (i.e. when
a type is declared in a different module), so let's use
`getAddrOfLLVMVariableOrGOTEquivalent` facility that knows how
to handle that correctly.

Resolves: rdar://problem/103878515
@xedin xedin force-pushed the fix-type-reference-for-runtime-metadata-entry branch from 60688e8 to 55a6b34 Compare January 4, 2023 22:19
@xedin
Copy link
Contributor Author

xedin commented Jan 4, 2023

@swift-ci please smoke test

@xedin
Copy link
Contributor Author

xedin commented Jan 4, 2023

@swift-ci please smoke test macOS platform

@xedin
Copy link
Contributor Author

xedin commented Jan 4, 2023

@swift-ci please build toolchain macOS platform

@stmontgomery stmontgomery self-requested a review January 5, 2023 17:08
@xedin xedin merged commit 3f151fe into swiftlang:main Jan 5, 2023
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.

3 participants