@@ -32,6 +32,7 @@ sil [ossa] @getOwnedC : $@convention(thin) () -> (@owned C)
32
32
sil [ossa] @takeOwnedC : $@convention(thin) (@owned C) -> ()
33
33
sil [ossa] @takeOwnedCTwice : $@convention(thin) (@owned C, @owned C) -> ()
34
34
sil [ossa] @takeGuaranteedC : $@convention(thin) (@guaranteed C) -> ()
35
+ sil [ossa] @takeGuaranteedAnyObject : $@convention(thin) (@guaranteed AnyObject) -> ()
35
36
36
37
// -O ignores this because there's no copy_value
37
38
// -Onone hoists the destroy and adds a poison flag.
342
343
br bb1
343
344
344
345
bb1:
346
+ %f2 = function_ref @takeGuaranteedAnyObject : $@convention(thin) (@guaranteed AnyObject) -> ()
347
+ %call = apply %f2(%obj) : $@convention(thin) (@guaranteed AnyObject) -> ()
345
348
destroy_value %copy : $AnyObject
346
349
destroy_value %obj : $AnyObject
347
350
destroy_value %box : ${ var AnyObject }
392
395
br bb2
393
396
394
397
bb2:
398
+ %f2 = function_ref @takeGuaranteedAnyObject : $@convention(thin) (@guaranteed AnyObject) -> ()
399
+ %call = apply %f2(%obj) : $@convention(thin) (@guaranteed AnyObject) -> ()
395
400
destroy_value %copy : $AnyObject
396
401
destroy_value %obj : $AnyObject
397
402
destroy_value %box : ${ var AnyObject }
435
440
br bb1
436
441
437
442
bb1:
443
+ %f2 = function_ref @takeGuaranteedAnyObject : $@convention(thin) (@guaranteed AnyObject) -> ()
444
+ %call = apply %f2(%obj) : $@convention(thin) (@guaranteed AnyObject) -> ()
438
445
destroy_value %copy : $AnyObject
439
446
destroy_value %obj : $AnyObject
440
447
destroy_value %box : ${ var AnyObject }
484
491
br bb2
485
492
486
493
bb2:
494
+ %f2 = function_ref @takeGuaranteedAnyObject : $@convention(thin) (@guaranteed AnyObject) -> ()
495
+ %call = apply %f2(%obj) : $@convention(thin) (@guaranteed AnyObject) -> ()
487
496
destroy_value %copy : $AnyObject
488
497
destroy_value %obj : $AnyObject
489
498
destroy_value %box : ${ var AnyObject }
527
536
br bb1
528
537
529
538
bb1:
539
+ %f2 = function_ref @takeGuaranteedAnyObject : $@convention(thin) (@guaranteed AnyObject) -> ()
540
+ %call = apply %f2(%obj) : $@convention(thin) (@guaranteed AnyObject) -> ()
530
541
destroy_value %copy : $AnyObject
531
542
destroy_value %obj : $AnyObject
532
543
destroy_value %box : ${ var AnyObject }
577
588
br bb2
578
589
579
590
bb2:
591
+ %f2 = function_ref @takeGuaranteedAnyObject : $@convention(thin) (@guaranteed AnyObject) -> ()
592
+ %call = apply %f2(%obj) : $@convention(thin) (@guaranteed AnyObject) -> ()
580
593
destroy_value %copy : $AnyObject
581
594
destroy_value %obj : $AnyObject
582
595
destroy_value %box : ${ var AnyObject }
622
635
br bb1
623
636
624
637
bb1:
638
+ %f2 = function_ref @takeGuaranteedAnyObject : $@convention(thin) (@guaranteed AnyObject) -> ()
639
+ %call = apply %f2(%obj) : $@convention(thin) (@guaranteed AnyObject) -> ()
625
640
destroy_value %obj : $AnyObject
626
641
destroy_value %box : ${ var AnyObject }
627
642
%v = tuple ()
0 commit comments