@@ -103,7 +103,7 @@ bb0(%0 : $Int):
103
103
end_access %8 : $*AggStruct
104
104
%12 = begin_access [read] [static] %3 : $*AggStruct
105
105
%13 = struct_element_addr %12 : $*AggStruct, #AggStruct.lhs
106
- %14 = load [copy] %13 : $*Klass // expected-note {{consuming use here}}
106
+ %14 = load [copy] %13 : $*Klass // expected-note {{consumed here}}
107
107
end_access %12 : $*AggStruct
108
108
%16 = move_value [lexical] %14 : $Klass
109
109
%17 = mark_must_check [consumable_and_assignable] %16 : $Klass
@@ -112,7 +112,7 @@ bb0(%0 : $Int):
112
112
%20 = move_value %19 : $Klass
113
113
destroy_value %20 : $Klass
114
114
destroy_value %17 : $Klass
115
- %23 = load [copy] %3 : $*AggStruct // expected-note {{consuming use here}}
115
+ %23 = load [copy] %3 : $*AggStruct // expected-note {{consumed here}}
116
116
destroy_addr %3 : $*AggStruct
117
117
dealloc_stack %2 : $*AggStruct
118
118
return %23 : $AggStruct
@@ -123,14 +123,14 @@ bb0(%arg : @owned $AggStruct):
123
123
%0 = alloc_stack [lexical] $AggStruct, var, name "x2"
124
124
%1 = mark_must_check [consumable_and_assignable] %0 : $*AggStruct
125
125
// expected-error @-1 {{'x2' consumed more than once}}
126
- // expected-error @-2 {{'x2' consumed by a use in a loop}}
126
+ // expected-error @-2 {{'x2' consumed in a loop}}
127
127
%9 = begin_access [modify] [static] %1 : $*AggStruct
128
128
store %arg to [init] %9 : $*AggStruct
129
129
end_access %9 : $*AggStruct
130
130
%12 = begin_access [read] [static] %1 : $*AggStruct
131
131
%13 = struct_element_addr %12 : $*AggStruct, #AggStruct.pair
132
132
%14 = struct_element_addr %13 : $*KlassPair, #KlassPair.lhs
133
- %15 = load [copy] %14 : $*Klass // expected-note {{consuming use here}}
133
+ %15 = load [copy] %14 : $*Klass // expected-note {{consumed here}}
134
134
end_access %12 : $*AggStruct
135
135
%17 = function_ref @classConsume : $@convention(thin) (@owned Klass) -> ()
136
136
%18 = apply %17(%15) : $@convention(thin) (@owned Klass) -> ()
@@ -144,8 +144,8 @@ bb2(%55 : $Int):
144
144
%57 = struct_element_addr %56 : $*AggStruct, #AggStruct.pair
145
145
%58 = struct_element_addr %57 : $*KlassPair, #KlassPair.lhs
146
146
%59 = load [copy] %58 : $*Klass
147
- // expected-note @-1 {{consuming use here}}
148
- // expected-note @-2 {{consuming use here}}
147
+ // expected-note @-1 {{consumed here}}
148
+ // expected-note @-2 {{consumed here}}
149
149
end_access %56 : $*AggStruct
150
150
%61 = function_ref @classConsume : $@convention(thin) (@owned Klass) -> ()
151
151
%62 = apply %61(%59) : $@convention(thin) (@owned Klass) -> ()
@@ -208,13 +208,13 @@ bb0(%arg : @owned $NonTrivialStruct, %arg1 : @owned $NonTrivialStruct):
208
208
end_access %12 : $*NonTrivialStruct
209
209
%19 = begin_access [read] [static] %1 : $*NonTrivialStruct
210
210
%20 = struct_element_addr %19 : $*NonTrivialStruct, #NonTrivialStruct.k
211
- %21 = load [copy] %20 : $*Klass // expected-note {{consuming use here}}
211
+ %21 = load [copy] %20 : $*Klass // expected-note {{consumed here}}
212
212
end_access %19 : $*NonTrivialStruct
213
213
%23 = function_ref @classConsume : $@convention(thin) (@owned Klass) -> ()
214
214
%24 = apply %23(%21) : $@convention(thin) (@owned Klass) -> ()
215
215
%25 = begin_access [read] [static] %1 : $*NonTrivialStruct
216
216
%26 = struct_element_addr %25 : $*NonTrivialStruct, #NonTrivialStruct.k
217
- %27 = load [copy] %26 : $*Klass // expected-note {{consuming use here}}
217
+ %27 = load [copy] %26 : $*Klass // expected-note {{consumed here}}
218
218
end_access %25 : $*NonTrivialStruct
219
219
%29 = function_ref @classConsume : $@convention(thin) (@owned Klass) -> ()
220
220
%30 = apply %29(%27) : $@convention(thin) (@owned Klass) -> ()
@@ -257,7 +257,7 @@ bb0(%0 : @owned $NonTrivialStruct):
257
257
%4 = mark_must_check [consumable_and_assignable] %3 : $*NonTrivialStruct // expected-error {{'x2' consumed more than once}}
258
258
store %1 to [init] %4 : $*NonTrivialStruct
259
259
%6 = function_ref @nonConsumingUseNonTrivialStruct : $@convention(thin) (@guaranteed NonTrivialStruct) -> ()
260
- %7 = load [copy] %4 : $*NonTrivialStruct // expected-note {{consuming use here}}
260
+ %7 = load [copy] %4 : $*NonTrivialStruct // expected-note {{consumed here}}
261
261
%8 = partial_apply [callee_guaranteed] %6(%7) : $@convention(thin) (@guaranteed NonTrivialStruct) -> ()
262
262
%9 = begin_borrow [lexical] %8 : $@callee_guaranteed () -> ()
263
263
debug_value %9 : $@callee_guaranteed () -> (), let, name "f"
@@ -266,7 +266,7 @@ bb0(%0 : @owned $NonTrivialStruct):
266
266
destroy_value %11 : $@callee_guaranteed () -> ()
267
267
%14 = alloc_stack $NonTrivialStruct, let, name "x3"
268
268
%15 = mark_must_check [consumable_and_assignable] %14 : $*NonTrivialStruct
269
- %16 = load [copy] %4 : $*NonTrivialStruct // expected-note {{consuming use here}}
269
+ %16 = load [copy] %4 : $*NonTrivialStruct // expected-note {{consumed here}}
270
270
store %16 to [init] %15 : $*NonTrivialStruct
271
271
%18 = load [copy] %15 : $*NonTrivialStruct
272
272
%19 = move_value %18 : $NonTrivialStruct
@@ -289,10 +289,10 @@ bb0(%0 : @owned $NonTrivialStruct):
289
289
%2 = mark_must_check [consumable_and_assignable] %1 : $*NonTrivialStruct // expected-error {{'x' used after consume}}
290
290
store %0 to [init] %2 : $*NonTrivialStruct
291
291
%4 = load_borrow %2 : $*NonTrivialStruct
292
- %5 = load [copy] %2 : $*NonTrivialStruct // expected-note {{consuming use here}}
292
+ %5 = load [copy] %2 : $*NonTrivialStruct // expected-note {{consumed here}}
293
293
%6 = function_ref @borrow_and_consume : $@convention(thin) (@guaranteed NonTrivialStruct, @owned NonTrivialStruct) -> ()
294
294
%7 = apply %6(%4, %5) : $@convention(thin) (@guaranteed NonTrivialStruct, @owned NonTrivialStruct) -> ()
295
- end_borrow %4 : $NonTrivialStruct // expected-note {{non-consuming use here}}
295
+ end_borrow %4 : $NonTrivialStruct // expected-note {{used here}}
296
296
destroy_addr %2 : $*NonTrivialStruct
297
297
dealloc_stack %1 : $*NonTrivialStruct
298
298
%11 = tuple ()
@@ -309,12 +309,12 @@ bb0(%0 : $*Klass):
309
309
%3 = alloc_stack [lexical] $Klass, var, name "y2"
310
310
%4 = mark_must_check [consumable_and_assignable] %3 : $*Klass
311
311
%5 = begin_access [read] [static] %1 : $*Klass
312
- copy_addr %5 to [init] %4 : $*Klass // expected-note {{consuming use here}}
312
+ copy_addr %5 to [init] %4 : $*Klass // expected-note {{consumed here}}
313
313
end_access %5 : $*Klass
314
314
%8 = begin_access [read] [static] %1 : $*Klass
315
315
%9 = load [copy] %8 : $*Klass
316
- // expected-note @-1 {{consuming use here}}
317
- // expected-note @-2 {{consuming use here}}
316
+ // expected-note @-1 {{consumed here}}
317
+ // expected-note @-2 {{consumed here}}
318
318
end_access %8 : $*Klass
319
319
%11 = begin_access [modify] [static] %4 : $*Klass
320
320
store %9 to [assign] %11 : $*Klass
@@ -407,9 +407,9 @@ bb0(%0 : @owned $NonTrivialStruct):
407
407
408
408
%8 = function_ref @coroutine_callee_uses_partial_apply : $@yield_once @convention(thin) (@guaranteed @callee_guaranteed () -> ()) -> @yields ()
409
409
(%9, %10) = begin_apply %8(%6) : $@yield_once @convention(thin) (@guaranteed @callee_guaranteed () -> ()) -> @yields ()
410
- %11 = load [copy] %2 : $*NonTrivialStruct // expected-note {{consuming use here}}
410
+ %11 = load [copy] %2 : $*NonTrivialStruct // expected-note {{consumed here}}
411
411
%12 = apply %7(%11) : $@convention(thin) (@owned NonTrivialStruct) -> ()
412
- end_apply %10 // expected-note {{non-consuming use here}}
412
+ end_apply %10 // expected-note {{used here}}
413
413
destroy_value %6 : $@callee_guaranteed () -> ()
414
414
destroy_addr %2 : $*NonTrivialStruct
415
415
dealloc_stack %1 : $*NonTrivialStruct
@@ -431,9 +431,9 @@ bb0(%0 : @owned $NonTrivialStruct):
431
431
432
432
%8 = function_ref @coroutine_callee_uses_partial_apply : $@yield_once @convention(thin) (@guaranteed @callee_guaranteed () -> ()) -> @yields ()
433
433
(%9, %10) = begin_apply %8(%6) : $@yield_once @convention(thin) (@guaranteed @callee_guaranteed () -> ()) -> @yields ()
434
- %11 = load [copy] %2 : $*NonTrivialStruct // expected-note {{consuming use here}}
434
+ %11 = load [copy] %2 : $*NonTrivialStruct // expected-note {{consumed here}}
435
435
%12 = apply %7(%11) : $@convention(thin) (@owned NonTrivialStruct) -> ()
436
- abort_apply %10 // expected-note {{non-consuming use here}}
436
+ abort_apply %10 // expected-note {{used here}}
437
437
destroy_value %6 : $@callee_guaranteed () -> ()
438
438
destroy_addr %2 : $*NonTrivialStruct
439
439
dealloc_stack %1 : $*NonTrivialStruct
@@ -489,15 +489,15 @@ bb0(%0 : @owned $NonTrivialStruct):
489
489
cond_br undef, bb1, bb2
490
490
491
491
bb1:
492
- %12 = load [copy] %2 : $*NonTrivialStruct // expected-note {{consuming use here}}
492
+ %12 = load [copy] %2 : $*NonTrivialStruct // expected-note {{consumed here}}
493
493
%13 = apply %7(%12) : $@convention(thin) (@owned NonTrivialStruct) -> ()
494
- abort_apply %10 // expected-note {{non-consuming use here}}
494
+ abort_apply %10 // expected-note {{used here}}
495
495
br bb3
496
496
497
497
bb2:
498
- %16 = load [copy] %2 : $*NonTrivialStruct // expected-note {{consuming use here}}
498
+ %16 = load [copy] %2 : $*NonTrivialStruct // expected-note {{consumed here}}
499
499
%17 = apply %7(%16) : $@convention(thin) (@owned NonTrivialStruct) -> ()
500
- end_apply %10 // expected-note {{non-consuming use here}}
500
+ end_apply %10 // expected-note {{used here}}
501
501
br bb3
502
502
503
503
bb3:
0 commit comments