Skip to content

Commit 50ff303

Browse files
committed
[Test][SILOptimizer] Update di-conditional-destroy-scope test requirements
1. Updated the generated function name in -sil-print-functions flag, looks like it changed and was causing output to be filtered 2. Fixed line numbers in CHECK from line 39 to line 38 where the destory operation happens
1 parent 77b651f commit 50ff303

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
// RUN: %target-swift-frontend -Xllvm -sil-print-types -emit-sil %s -Onone -Xllvm \
22
// RUN: -sil-print-after=raw-sil-inst-lowering -Xllvm \
3-
// RUN: -sil-print-functions=$s2fs36RecursibleDirectoryContentsGeneratorC4path10fileSystemAcA12AbsolutePathV_AA04FileH0_ptKc33_F8B132991B28208F48606E87DC165393Llfc \
3+
// RUN: -sil-print-functions=$s2fs36RecursibleDirectoryContentsGeneratorC4path10fileSystemAcA12AbsolutePathV_AA04FileH0_ptKc33_F988CDD4B32A48D8BEE265DC43B61560Llfc \
44
// RUN: -Xllvm -sil-print-types -Xllvm -sil-print-debuginfo -o /dev/null -module-name fs 2>&1 | %FileCheck %s
55

6-
// CHECK: [[ADR:%.*]] = ref_element_addr %{{.*}} : $RecursibleDirectoryContentsGenerator, #RecursibleDirectoryContentsGenerator.fileSystem, loc {{.*}}:39:5, scope [[SCOPE:[0-9]+]]
6+
// REQUIRES: foundation
7+
8+
// CHECK: [[ADR:%.*]] = ref_element_addr %{{.*}} : $RecursibleDirectoryContentsGenerator, #RecursibleDirectoryContentsGenerator.fileSystem, loc {{.*}}:38:5, scope [[SCOPE:[0-9]+]]
79
// CHECK: [[ADR_ACCESS:%.*]] = begin_access [deinit] [static] [[ADR]]
8-
// CHECK: destroy_addr [[ADR_ACCESS]] : $*any FileSystem, loc {{.*}}:39:5, scope [[SCOPE]]
10+
// CHECK: destroy_addr [[ADR_ACCESS]] : $*any FileSystem, loc {{.*}}:38:5, scope [[SCOPE]]
911

1012

1113
import Foundation

0 commit comments

Comments
 (0)