Skip to content

Commit b3d43b4

Browse files
committed
Delete package cmo test with -experimental-skip-deserialization-checks-for-package-cmo
SIL verification is stricter and in some cases enabled in release build of the compiler as well with -enable-ossa-modules. This test with -experimental-skip-deserialization-checks-for-package-cmo previously passed even though there were SIL instructions like strong_retain/strong_release on a trivial type. Disable this instance since SIL verification triggers copy_value etc on a trivial type.
1 parent a79c545 commit b3d43b4

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

test/SILOptimizer/package-cmo-disallow-bypass-resilience-on-deserialization-fail.swift

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,6 @@
3131
// RUN: 2>&1 | %FileCheck %s --check-prefix=CHECK
3232
// CHECK-DAG: error: cannot bypass resilience due to member deserialization failure while attempting to access missing member of 'PkgStructA' in module 'MyCore' from module 'MyCore'
3333

34-
/// Build a swift module that depends on Core without `INCLUDE_FOO` but
35-
/// opt out of deserialization checks; it builds even though deserialization failed.
36-
// RUN: %target-build-swift-dylib(%t/artifacts/SwiftBuilds/%target-library-name(MyUIA)) %t/src/UIA.swift \
37-
// RUN: -module-name MyUIA -emit-module -package-name pkg \
38-
// RUN: -enable-library-evolution -O -wmo \
39-
// RUN: -Xfrontend -experimental-skip-deserialization-checks-for-package-cmo \
40-
// RUN: -I %t/artifacts/SwiftBuilds -L %t/artifacts/SwiftBuilds \
41-
// RUN: -I %t/artifacts/ObjcBuilds -L %t/artifacts/ObjcBuilds \
42-
// RUN: -lMyCore -lObjCAPI -Rmodule-loading
43-
4434
/// Build another swift module that depends on Core; since FooObjc is not referenced
4535
/// in the call chain, there's no deserialization failure, and bypassing resilience is allowed.
4636
// RUN: %target-build-swift-dylib(%t/artifacts/SwiftBuilds/%target-library-name(MyUIB)) %t/src/UIB.swift \

0 commit comments

Comments
 (0)