Skip to content

Commit bf6fc3e

Browse files
author
Davide Italiano
committed
[SILOptimizer] Require Obj-C interoperability for this test.
Also fixup check lines.
1 parent 3d9eb3d commit bf6fc3e

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

test/SILOptimizer/di-conditional-destroy-scope.swift

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@
33
// RUN: -sil-print-only-functions=$S2fs36RecursibleDirectoryContentsGeneratorC4path10fileSystemAcA12AbsolutePathV_AA04FileH0_ptKc33_F8B132991B28208F48606E87DC165393Llfc \
44
// RUN: -Xllvm -sil-print-debuginfo -o /dev/null 2>&1 | %FileCheck %s
55

6-
// CHECK: %48 = begin_borrow %2 : $RecursibleDirectoryContentsGenerator, loc {{.*}}:36:5, scope 2
7-
// CHECK: %49 = ref_element_addr %48 : $RecursibleDirectoryContentsGenerator, #RecursibleDirectoryContentsGenerator.fileSystem, loc {{.*}}:36:5, scope 2
8-
// CHECK: destroy_addr %49 : $*FileSystem, loc {{.*}}:36:5, scope 2
9-
// CHECK: end_borrow %48 from %2 : $RecursibleDirectoryContentsGenerator, $RecursibleDirectoryContentsGenerator, loc {{.*}}:36:5, scope 2
6+
// REQUIRES: objc_interop
7+
8+
9+
// CHECK: %49 = ref_element_addr %48 : $RecursibleDirectoryContentsGenerator, #RecursibleDirectoryContentsGenerator.fileSystem, loc {{.*}}:38:5, scope 2
10+
// CHECK: destroy_addr %49 : $*FileSystem, loc {{.*}}:38:5, scope 2
11+
1012

1113
import Foundation
1214

0 commit comments

Comments
 (0)