You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[move-only] Teach the move only object checker how to handle concrete resilient guaranteed arguments.
The only difference from normal concrete guaranteed parameter emission is we
have a load_borrow on the argument before the copy_value. That is instead of:
```
bb0(%0 : @guaranteed $Type):
%1 = copy_value %0
%2 = mark_must_check [no_consume_or_assign] %1
```
we have,
```
bb0(%0 : $*Type): // in_guaranteed
%1 = load_borrow %0
%2 = copy_value %1
%3 = mark_must_check [no_consume_or_assign] %2
```
So I just needed to update the checker to recognize that pattern.
This is tested by just making sure that the checker can handle the borrowVal in
the tests without emitting an error.
rdar://109170906
(cherry picked from commit 7d7c929)
0 commit comments