Skip to content

[lldb] Add missing return type annotations #10837

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
Jun 13, 2025

Conversation

adrian-prantl
Copy link

In a thorny corner of the language C++ doesn't actually type check the return type of a function passed into a std::function argument. Here the type inference in the lambda resulted in a ChildInfo being returned where an llvm::Expected was expected, which through coincidence works very often, but not always, leading to a crash.

rdar://153137542

In a thorny corner of the language C++ doesn't actually type check the
return type of a function passed into a std::function argument. Here
the type inference in the lambda resulted in a ChildInfo being
returned where an llvm::Expected<ChildInfo> was expected, which
through coincidence works very often, but not always, leading to a
crash.

rdar://153137542
@adrian-prantl adrian-prantl requested a review from a team as a code owner June 13, 2025 15:52
@adrian-prantl
Copy link
Author

@swift-ci test

@adrian-prantl adrian-prantl merged commit e64ef52 into swiftlang:swift/release/6.2 Jun 13, 2025
3 checks passed
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