Skip to content

[lldb] Mark parsing Swift expressions with generics as not cacheable #7493

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

Conversation

augusto2112
Copy link

Because a Swift expression may have different generic instantiations in different invocations, we cannot cache the parsing of them.

(cherry picked from commit 97bb2d8)

When setting conditional breakpoints, we currently assume that a call to
UserExpression::Parse() can be cached and resued multiple times. This
may not be true for every user expression. Add a new method so
subclasses of UserExpression can customize if they are parseable or not.

(cherry picked from commit f3aa765)
Because a Swift expression may have different generic instantiations in
different invocations, we cannot cache the parsing of them.

(cherry picked from commit 97bb2d8)
@augusto2112
Copy link
Author

@swift-ci test

@augusto2112
Copy link
Author

@swift-ci test

@augusto2112
Copy link
Author

@swift-ci test Windows

@adrian-prantl adrian-prantl merged commit 070d386 into swiftlang:swift/release/5.9 Sep 22, 2023
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