Skip to content

[lldb] Make generic expr eval work with multiple toplevel generic params #5782

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

Before this patch, generic expression evaluation would only work for a single toplevel generic parameter. This patch expands its capabilities to allow for multiple generic parameters.

Before this patch, generic expression evaluation would only work for a
single toplevel generic parameter. This patch expands its capabilities
to allow for multiple generic parameters.
@augusto2112
Copy link
Author

@swift-ci test

Copy link

@adrian-prantl adrian-prantl left a comment

Choose a reason for hiding this comment

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

FWIW, it would be better to split this into NFC refactorings and new functionality.

if (pair->getDepth() != 0)
return false;

auto var_name = "$τ_0_" + std::to_string(pair->getIndex());

Choose a reason for hiding this comment

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

Copy link
Author

Choose a reason for hiding this comment

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

FWIW, it would be better to split this into NFC refactorings and new functionality.

Ok, I'll do some NFCs instead. First one: #5790

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