Skip to content

[+0-all-args] Fix SILGenBuilder::createFunctionInputArgument(...) for… #15089

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

gottesmm
Copy link
Contributor

@gottesmm gottesmm commented Mar 9, 2018

… in_guaranteed parameters

This method was not distinguishing in between in_guaranteed and in
parameters. This would cause the curry thunk where this is used to not copy
in_guaranteed parameters before passing in the parameter to the
partial_apply. This can not affect +1 code since the curry thunk will always
have self at +1.

I also refactored code in:

  1. SILGenPoly.
  2. SILGenProlog.
  3. SILGenConstructor.

to use this function instead of their own reimplementations of the same thing.

This should be NFC for +1 code and is tested by test updates when +0 is enabled.

rdar://34222540

@gottesmm
Copy link
Contributor Author

gottesmm commented Mar 9, 2018

@swift-ci smoke test and merge

… in_guaranteed parameters

This method was not distinguishing in between in_guaranteed and in
parameters. This would cause the curry thunk where this is used to not copy
in_guaranteed parameters before passing in the parameter to the
partial_apply. This can not affect +1 code since the curry thunk will always
have self at +1.

I also refactored code in:

1. SILGenPoly.
2. SILGenProlog.
3. SILGenConstructor.

to use this function instead of their own reimplementations of the same thing.

This should be NFC for +1 code and is tested by test updates when +0 is enabled.

rdar://34222540
@gottesmm gottesmm force-pushed the pr-215a0ace32f79bcd4c1910c06c19468d27720cfe branch from 45f522c to 8af8e4f Compare March 9, 2018 00:51
@gottesmm
Copy link
Contributor Author

gottesmm commented Mar 9, 2018

@swift-ci smoke test and merge

3 similar comments
@gottesmm
Copy link
Contributor Author

gottesmm commented Mar 9, 2018

@swift-ci smoke test and merge

@gottesmm
Copy link
Contributor Author

gottesmm commented Mar 9, 2018

@swift-ci smoke test and merge

@gottesmm
Copy link
Contributor Author

gottesmm commented Mar 9, 2018

@swift-ci smoke test and merge

@swift-ci swift-ci merged commit d502357 into swiftlang:master Mar 9, 2018
@gottesmm gottesmm deleted the pr-215a0ace32f79bcd4c1910c06c19468d27720cfe branch March 9, 2018 02:09
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