Skip to content

Commit 83d8dd1

Browse files
committed
[Gardening] Made parens match.
Allow jumping around via matching parens by adding omitted matches.
1 parent 9429514 commit 83d8dd1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/SILOptimizer/shrink_borrow_scope.sil

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,7 @@ entry(%instance : @guaranteed $C):
593593
// Hoist over an apply that uses a copy of the borrow.
594594
// CHECK-LABEL: sil [ossa] @hoist_over_apply_at_copy : {{.*}} {
595595
// CHECK-NOT: copy_value
596-
// CHECK-LABEL: // end sil function 'hoist_over_apply_at_copy'
596+
// CHECK-LABEL: } // end sil function 'hoist_over_apply_at_copy'
597597
sil [ossa] @hoist_over_apply_at_copy : $@convention(thin) (@owned C) -> () {
598598
entry(%instance : @owned $C):
599599
%synchronization_point = function_ref @synchronization_point : $@convention(thin) () -> ()
@@ -618,7 +618,7 @@ entry(%instance : @owned $C):
618618
// CHECK: [[LIFETIME:%[^,]+]] = begin_borrow [[INSTANCE]]
619619
// CHECK: end_borrow [[LIFETIME]]
620620
// CHECK: apply {{%[^,]+}}([[INSTANCE]])
621-
// CHECK-LABEL: // end sil function 'hoist_over_apply_at_borrow'
621+
// CHECK-LABEL: } // end sil function 'hoist_over_apply_at_borrow'
622622
sil [ossa] @hoist_over_apply_at_borrow : $@convention(thin) (@owned C) -> () {
623623
entry(%instance : @owned $C):
624624
%lifetime = begin_borrow %instance : $C
@@ -645,7 +645,7 @@ entry(%instance : @owned $C):
645645
// CHECK: [[COPY:%[^,]+]] = copy_value [[LIFETIME]]
646646
// CHECK: end_borrow [[LIFETIME]]
647647
// CHECK: begin_borrow [[COPY]]
648-
// CHECK-LABEL: // end sil function 'hoist_over_borrow_of_copy'
648+
// CHECK-LABEL: } // end sil function 'hoist_over_borrow_of_copy'
649649
sil [ossa] @hoist_over_borrow_of_copy : $@convention(thin) (@owned C) -> () {
650650
entry(%instance : @owned $C):
651651
%lifetime_1 = begin_borrow %instance : $C

0 commit comments

Comments
 (0)