Skip to content

[lldb] Fix unsafe pointer type determination logic #8742

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

kastiglione
Copy link

@kastiglione kastiglione commented May 10, 2024

The synthetic provider for the Unsafe*Pointer types contains faulty logic that looks for the substring "Raw" in the fully populated type name, to determine if one of the UnsafeRaw pointer types should be used. In other words, UnsafeBufferPointer<MyTypeWithRawInTheName> will erroneously have the UnsafeRawBufferPointer formatter selected for it.

rdar://127897493

@kastiglione
Copy link
Author

This was affecting the ability to inspect swift-syntax values, where the design involves many generated types whose name begins with Raw.

@kastiglione
Copy link
Author

@swift-ci test

@adrian-prantl adrian-prantl merged commit 76e0c40 into swift/release/6.0 May 14, 2024
3 checks passed
@kastiglione kastiglione deleted the dl/lldb-Fix-unsafe-pointer-type-determination-logic branch May 14, 2024 15:05
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