Commit 508bf8a
committed
[move-only] Teach SILGenApply how to emit subscripts with borrowed base values.
I also added a bunch of tests that showed the behavior of subscripts/other accessors with the following combinations of semantics:
1. get only.
2. get/set.
3. get/modify.
4. read/set.
5. read/modify.
rdar://1097464761 parent f3f238a commit 508bf8a
File tree
5 files changed
+3016
-5
lines changed- lib/SILGen
- test
- SILGen
- SILOptimizer
5 files changed
+3016
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
280 | 280 | | |
281 | 281 | | |
282 | 282 | | |
283 | | - | |
| 283 | + | |
284 | 284 | | |
285 | 285 | | |
286 | 286 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3042 | 3042 | | |
3043 | 3043 | | |
3044 | 3044 | | |
| 3045 | + | |
| 3046 | + | |
| 3047 | + | |
| 3048 | + | |
| 3049 | + | |
| 3050 | + | |
| 3051 | + | |
| 3052 | + | |
3045 | 3053 | | |
3046 | 3054 | | |
3047 | 3055 | | |
| |||
3097 | 3105 | | |
3098 | 3106 | | |
3099 | 3107 | | |
| 3108 | + | |
| 3109 | + | |
| 3110 | + | |
| 3111 | + | |
| 3112 | + | |
| 3113 | + | |
3100 | 3114 | | |
3101 | 3115 | | |
3102 | 3116 | | |
| |||
0 commit comments