-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Demangle an OpaqueArchetypeTypeRef's ID as a type not as a symbol #62043
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
Demangle an OpaqueArchetypeTypeRef's ID as a type not as a symbol #62043
Conversation
@swift-ci smoke test |
Can you add a test case? |
1ea17ab
to
e2febea
Compare
@swift-ci smoke test |
@slavapestov, I talked with @jckarter and currently this doesn't seem to be easy to test from the swift repo, we'd need a an offline tool that uses remote mirror to reproduce this case. I will add a test in LLDB that exercises this specific demangling operation, hopefully that should be enough? |
@augusto2112 What does the test case look like? You should be able to test most TypeDecoder code paths via lldb-moduleimport-test from test/TypeDecoder, or swift-reflection-dump from test/Reflection. |
@slavapestov sorry, had to work on other issues. This is the lldb test case:
I could not figure out a way to test this purely from the compiler side. |
@swift-ci smoke test |
So I just debugged this for other crashes, and came up with the exact same diff. I asked @jckarter about the change, and he pointed me here. Given:
I think it's best to merge this and follow up with tests later. I am happy to take that on, @augusto2112. |
@swift-ci test Windows Platform |
LLDB test: swiftlang/llvm-project#5848 |
Let's merge this now since it's tested in LLDB. We can still follow up later with a test inside of the swift repo if we find a way to do this. |
rdar://102064732