Commit 2a07d76
committed
[move-only] Add a test that shows the previous commit allows consume on var without errors to work.
I found that in the given case, an extra allocation was being emitted causing us
to in the success case to have an extra copy. In the previous commit, as part of
updating the codegen for consume, I also ensured that we wouldn't have that
extra allocation any more by handling the lvalue directly.
rdar://1092224961 parent 67fcb1c commit 2a07d76
1 file changed
+7
-0
lines changedLines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3749 | 3749 | | |
3750 | 3750 | | |
3751 | 3751 | | |
| 3752 | + | |
| 3753 | + | |
| 3754 | + | |
| 3755 | + | |
| 3756 | + | |
| 3757 | + | |
| 3758 | + | |
3752 | 3759 | | |
3753 | 3760 | | |
3754 | 3761 | | |
| |||
0 commit comments