Skip to content

[IRGen] Skip async context params before handling direct error return… #75316

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
Jul 18, 2024

Conversation

drexin
Copy link
Contributor

@drexin drexin commented Jul 17, 2024

… values

rdar://131960281

We need to skip the async context params, otherwise we load the wrong parameters.

… values

rdar://131960281

We need to skip the async context params, otherwise we load the wrong parameters.
@drexin drexin requested a review from rjmccall as a code owner July 17, 2024 22:49
@drexin
Copy link
Contributor Author

drexin commented Jul 17, 2024

@swift-ci smoke test

@drexin drexin requested a review from nate-chandler July 17, 2024 22:49
for (unsigned i = 0, e = resultTys.size(); i != e; ++i) {
llvm::Value *elt =
Builder.CreateExtractValue(result, numAsyncContextParams + i);
resultAgg = Builder.CreateInsertValue(resultAgg, elt, i);
Copy link
Contributor

Choose a reason for hiding this comment

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

It's a little unfortunate to build up an aggregate value only to break it down again, but it works.

@drexin drexin merged commit e3577ed into swiftlang:main Jul 18, 2024
3 checks passed
@drexin drexin deleted the wip-131960281 branch July 18, 2024 02:00
aschwaighofer added a commit to aschwaighofer/swift that referenced this pull request Sep 12, 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.

2 participants