Skip to content

[lldb] Skip validation of simd types on typedef functions in tsstyperef #3337

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

augusto2112
Copy link

SIMD types have some special handling in the compiler, causing divergences
on the way SwiftASTContext and TypeSystemSwiftTypeRef view the same type.


// SIMD types have some special handling in the compiler, causing divergences
// on the way SwiftASTContext and TypeSystemSwiftTypeRef view the same type.
if (mangled_name.GetStringRef().contains_insensitive("simd"))

Choose a reason for hiding this comment

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

The string "simd" is really short and could appear in many types. Is there a way to use startswith() or at least search for "4simd" to make false positives slightly less likely? Otherwise this LGTM!

SIMD types have some special handling in the compiler, causing divergences
on the way SwiftASTContext and TypeSystemSwiftTypeRef view the same type.
@augusto2112 augusto2112 force-pushed the typedef-skip-simd-validation branch from 0d91791 to 9c6b8ad Compare October 5, 2021 17:24
@augusto2112 augusto2112 merged commit dc2c0ec into swiftlang:stable/20210726 Oct 5, 2021
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.

2 participants