Skip to content

Commit b926997

Browse files
committed
[silgen] Rather than adding enable-sil-ownership to all SILGen tests individually, just use the lit pattern.
This will ensure that new SILGen tests that are added have ownership verification enabled. rdar://43398898
1 parent f8e2723 commit b926997

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/lit.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1210,8 +1210,8 @@ config.substitutions.append(('%target-runtime', config.target_runtime))
12101210

12111211
config.substitutions.append(('%target-typecheck-verify-swift', config.target_parse_verify_swift))
12121212

1213-
config.substitutions.append(('%target-swift-emit-silgen\(mock-sdk:([^)]+)\)', '%target-swift-frontend(mock-sdk:\\1) -emit-silgen -verify-syntax-tree'))
1214-
config.substitutions.append(('%target-swift-emit-silgen', '%target-swift-frontend -emit-silgen -verify-syntax-tree'))
1213+
config.substitutions.append(('%target-swift-emit-silgen\(mock-sdk:([^)]+)\)', '%target-swift-frontend(mock-sdk:\\1) -emit-silgen -verify-syntax-tree -enable-sil-ownership'))
1214+
config.substitutions.append(('%target-swift-emit-silgen', '%target-swift-frontend -emit-silgen -verify-syntax-tree -enable-sil-ownership'))
12151215
config.substitutions.append(('%target-swift-emit-sil\(mock-sdk:([^)]+)\)', '%target-swift-frontend(mock-sdk:\\1) -emit-sil -verify-syntax-tree'))
12161216
config.substitutions.append(('%target-swift-emit-sil', '%target-swift-frontend -emit-sil -verify-syntax-tree'))
12171217
config.substitutions.append(('%target-swift-emit-ir\(mock-sdk:([^)]+)\)', '%target-swift-frontend(mock-sdk:\\1) -emit-ir -verify-syntax-tree'))

0 commit comments

Comments
 (0)