Skip to content

Conversation

@gottesmm
Copy link
Contributor

@gottesmm gottesmm commented Sep 5, 2018

…operand.

I changed all of the places that used end_borrow_argument to use end_borrow.

rdar://33440767

@gottesmm gottesmm requested a review from rjmccall September 5, 2018 03:51
@gottesmm
Copy link
Contributor Author

gottesmm commented Sep 5, 2018

@swift-ci smoke test

Copy link
Contributor

@rjmccall rjmccall left a comment

Choose a reason for hiding this comment

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

Progress!

@gottesmm gottesmm force-pushed the pr-67d16ab8862dce3cff561b2a4dbee16514133383 branch from c2ea7bb to db5189b Compare September 6, 2018 18:51
@gottesmm
Copy link
Contributor Author

gottesmm commented Sep 6, 2018

While looking at those failing tests I discovered we aren't strictly verifying guaranteed arguments as much as we can. The behavior that we want is that a guaranteed argument must be contained strictly within the parent borrowed scope. I have an additional commit that is going to tighten this up and adds a bunch of tests to check the behavior.

@gottesmm
Copy link
Contributor Author

gottesmm commented Sep 6, 2018

It is ok to ignore that for now since SILGen doesn't emit +0 non-function arguments.

@gottesmm
Copy link
Contributor Author

gottesmm commented Sep 6, 2018

@swift-ci smoke test and merge

2 similar comments
@gottesmm
Copy link
Contributor Author

gottesmm commented Sep 6, 2018

@swift-ci smoke test and merge

@gottesmm
Copy link
Contributor Author

gottesmm commented Sep 6, 2018

@swift-ci smoke test and merge

…operand.

I changed all of the places that used end_borrow_argument to use end_borrow.

NOTE: I discovered in the process of this patch that we are not verifying
guaranteed block arguments completely. I disabled the tests here that show this
bad behavior and am going to re-enable them with more tests in a separate PR.
This has not been a problem since SILGen does not emit any such arguments as
guaranteed today. But once I do the SILGenPattern work this will change.

rdar://33440767
@gottesmm gottesmm force-pushed the pr-67d16ab8862dce3cff561b2a4dbee16514133383 branch from db5189b to 0290cd4 Compare September 6, 2018 21:05
@gottesmm
Copy link
Contributor Author

gottesmm commented Sep 6, 2018

Lets try this one last time.

@gottesmm
Copy link
Contributor Author

gottesmm commented Sep 6, 2018

@swift-ci smoke test and merge

2 similar comments
@gottesmm
Copy link
Contributor Author

gottesmm commented Sep 6, 2018

@swift-ci smoke test and merge

@gottesmm
Copy link
Contributor Author

gottesmm commented Sep 6, 2018

@swift-ci smoke test and merge

@swift-ci swift-ci merged commit 5e2b705 into swiftlang:master Sep 6, 2018
@gottesmm gottesmm deleted the pr-67d16ab8862dce3cff561b2a4dbee16514133383 branch September 6, 2018 23:08
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.

3 participants