Skip to content

Thread llvm::Expected through SwiftASTContext::Reconstruct type #8503

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 3 commits into from
Apr 2, 2024

Conversation

adrian-prantl
Copy link

[Thread llvm::Expected through SwiftASTContext::Reconstruct type all the way to the expression evaluator. Without this change a user would see a misleading

  error: <EXPR>:8:1: cannot find 'variable' in scope

instead of pointing at the missing debug info for variable's type.

rdar://125613361

all the way to the expression evaluator. Without this change a user
would see a misleading

  error: <EXPR>:8:1: cannot find 'variable' in scope

instead of pointing at the missing debug info for variable's type.

rdar://125613361
@adrian-prantl
Copy link
Author

@augusto2112 @kastiglione I had to redo this to store all errors in the list of variables instead of returning expected from ASTManipulator, because we expect in some testcases to have an expression succeed despite some variables (that aren't referenced in the expression) failing to lookup. The new patch touches more code, but it's all still very mechanical.

@adrian-prantl
Copy link
Author

@swift-ci test

@adrian-prantl
Copy link
Author

@augusto2112 @kastiglione I'm going to merge this now, but I would still appreciate some post-commit feedback if you can take a look!

@adrian-prantl adrian-prantl merged commit e1b786a into swiftlang:swift/release/6.0 Apr 2, 2024
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.

1 participant