Skip to content

Add support for 32-bit reflection contexts. #3590

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
merged 1 commit into from
Dec 1, 2021

Conversation

adrian-prantl
Copy link

This patch introduces a wrapper ReflectionContextInterface that
encapsulates all traffic to ReflectionContext and abstracts the
detail that ReflectionContext is a template that needs to be
specialized for a specific pointer width.

This fixes various TypeSystemSwiftTypeRef issues when debugging on an
arm64_32 Apple Watch.

rdar://83959667

Copy link

@augusto2112 augusto2112 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉🎉🎉

This patch introduces a wrapper ReflectionContextInterface that
encapsulates all traffic to ReflectionContext and abstracts the
detail that ReflectionContext is a template that needs to be
specialized for a specific pointer width.

This fixes various TypeSystemSwiftTypeRef issues when debugging on an
arm64_32 Apple Watch.

rdar://83959667
@adrian-prantl
Copy link
Author

@swift-ci test

Copy link

@kastiglione kastiglione left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

It's unfortunate there's not a less repetitive way of erasing the pointer width.

@adrian-prantl
Copy link
Author

@swift-ci test

@adrian-prantl adrian-prantl merged commit 4475658 into swiftlang:stable/20210726 Dec 1, 2021
compnerd added a commit to compnerd/llvm-project that referenced this pull request Dec 1, 2021
The change in swiftlang#3590 introduced an undefined pure virtual method but did
not mark it as a pure virtual method, resulting in an undefined exported
function.  The Windows build identified this issue.

Patch by Adrian Prantl!
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