Skip to content

[lldb] Unwrap the type when dereferencing the value #3867

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
Feb 2, 2022
Merged

[lldb] Unwrap the type when dereferencing the value #3867

merged 1 commit into from
Feb 2, 2022

Conversation

shafik
Copy link

@shafik shafik commented Feb 1, 2022

The value type can be a typedef of a reference (e.g. typedef int& myint).
In this case GetQualType(type) will return clang::Typedef, which cannot
be casted to clang::ReferenceType.

Fix a regression introduced in https://reviews.llvm.org/D103532.

Reviewed By: teemperor

Differential Revision: https://reviews.llvm.org/D113673

(cherry picked from commit 95102b7)

Also see: rdar://82009764

The value type can be a typedef of a reference (e.g. `typedef int& myint`).
In this case `GetQualType(type)` will return `clang::Typedef`, which cannot
be casted to `clang::ReferenceType`.

Fix a regression introduced in https://reviews.llvm.org/D103532.

Reviewed By: teemperor

Differential Revision: https://reviews.llvm.org/D113673

(cherry picked from commit 95102b7)
@shafik
Copy link
Author

shafik commented Feb 1, 2022

@swift-ci please test

@shafik shafik merged commit a9a5fb5 into swiftlang:stable/20211026 Feb 2, 2022
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.

4 participants