Skip to content

Commit 1a45ef2

Browse files
authored
Merge pull request swiftlang#27899 from gottesmm/pr-06b8ad088ad8a2d32f51fdb8c71e9c32850a23d8
2 parents be47c97 + f10b45b commit 1a45ef2

34 files changed

+42
-3
lines changed

test/SILGen/closure_script_global_escape.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// RUN: %target-swift-emit-silgen -module-name foo %s | %FileCheck %s
22
// RUN: %target-swift-emit-sil -module-name foo -verify %s
3+
// RUN: %target-swift-frontend -emit-sil -module-name foo -verify %s -enable-ownership-stripping-after-serialization
34

45
// CHECK-LABEL: sil [ossa] @main
56

test/SILGen/closure_self_recursion.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// RUN: %target-swift-emit-silgen -module-name foo %s | %FileCheck %s
22
// RUN: %target-swift-emit-sil -module-name foo -verify %s
3+
// RUN: %target-swift-frontend -emit-sil -module-name foo -verify %s -enable-ownership-stripping-after-serialization
34

45
// CHECK-LABEL: sil [ossa] @main
56

test/SILGen/polymorphic_inout_aliasing.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// RUN: %target-swift-emit-sil -verify %s
2+
// RUN: %target-swift-frontend -emit-sil -verify %s -enable-ownership-stripping-after-serialization
23

34
struct Block {}
45

test/SILOptimizer/access_enforcement_noescape_error.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// RUN: %target-swift-frontend -module-name access_enforcement_noescape -enforce-exclusivity=checked -Onone -emit-sil -swift-version 4 -verify -parse-as-library %s
2+
// RUN: %target-swift-frontend -module-name access_enforcement_noescape -enforce-exclusivity=checked -Onone -emit-sil -swift-version 4 -verify -parse-as-library -enable-ownership-stripping-after-serialization %s
23
// REQUIRES: asserts
34

45
// This is the subset of tests from access_enforcement_noescape.swift

test/SILOptimizer/access_wmo_diagnose.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// RUN: %target-swift-frontend -parse-as-library -emit-sil -enforce-exclusivity=checked -primary-file %s -o /dev/null -verify
2+
// RUN: %target-swift-frontend -enable-ownership-stripping-after-serialization -parse-as-library -emit-sil -enforce-exclusivity=checked -primary-file %s -o /dev/null -verify
23

34
// AccessEnforcementWMO assumes that the only way to address a global or static
45
// property is via a formal begin_access. If we ever allow keypaths for static

test/SILOptimizer/constant_propagation_diagnostics.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// RUN: %target-swift-frontend -emit-sil -sdk %S/../SILGen/Inputs %s -o /dev/null -verify
2+
// RUN: %target-swift-frontend -enable-ownership-stripping-after-serialization -emit-sil -sdk %S/../SILGen/Inputs %s -o /dev/null -verify
23

34
// <rdar://problem/18213320> enum with raw values that are too big are not diagnosed
45
enum EnumWithTooLargeElements : UInt8 {

test/SILOptimizer/definite_init_address_only_let.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// RUN: %target-swift-frontend -emit-sil -verify %s
2+
// RUN: %target-swift-frontend -emit-sil -enable-ownership-stripping-after-serialization -verify %s
23

34
func foo<T>(a: Bool, t: T) {
45
let x: T

test/SILOptimizer/definite_init_cross_module.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
// RUN: %target-swift-frontend -emit-module -emit-module-path=%t/OtherModule.swiftmodule %S/Inputs/definite_init_cross_module/OtherModule.swift
33
// RUN: %target-swift-frontend -emit-sil -verify -I %t -swift-version 5 %s > /dev/null -enable-objc-interop -disable-objc-attr-requires-foundation-module -import-objc-header %S/Inputs/definite_init_cross_module/BridgingHeader.h
44

5+
// RUN: %empty-directory(%t)
6+
// RUN: %target-swift-frontend -emit-module -emit-module-path=%t/OtherModule.swiftmodule %S/Inputs/definite_init_cross_module/OtherModule.swift -enable-ownership-stripping-after-serialization
7+
// RUN: %target-swift-frontend -emit-sil -verify -I %t -swift-version 5 %s > /dev/null -enable-objc-interop -disable-objc-attr-requires-foundation-module -import-objc-header %S/Inputs/definite_init_cross_module/BridgingHeader.h -enable-ownership-stripping-after-serialization
8+
59
import OtherModule
610

711
extension Point {

test/SILOptimizer/definite_init_cross_module_swift4.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
// RUN: %target-swift-frontend -emit-module -emit-module-path=%t/OtherModule.swiftmodule %S/Inputs/definite_init_cross_module/OtherModule.swift
33
// RUN: %target-swift-frontend -emit-sil -verify -verify-ignore-unknown -I %t -swift-version 4 %s > /dev/null -enable-objc-interop -disable-objc-attr-requires-foundation-module -import-objc-header %S/Inputs/definite_init_cross_module/BridgingHeader.h
44

5+
// RUN: %empty-directory(%t)
6+
// RUN: %target-swift-frontend -enable-ownership-stripping-after-serialization -emit-module -emit-module-path=%t/OtherModule.swiftmodule %S/Inputs/definite_init_cross_module/OtherModule.swift
7+
// RUN: %target-swift-frontend -enable-ownership-stripping-after-serialization -emit-sil -verify -verify-ignore-unknown -I %t -swift-version 4 %s > /dev/null -enable-objc-interop -disable-objc-attr-requires-foundation-module -import-objc-header %S/Inputs/definite_init_cross_module/BridgingHeader.h
8+
59
import OtherModule
610

711
extension Point {

test/SILOptimizer/definite_init_diagnostics.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// RUN: %target-swift-frontend -emit-sil -primary-file %s -o /dev/null -verify
2+
// RUN: %target-swift-frontend -emit-sil -enable-ownership-stripping-after-serialization -primary-file %s -o /dev/null -verify
23

34
import Swift
45

0 commit comments

Comments
 (0)