Skip to content

Commit 4aea60c

Browse files
committed
Fix test case.
The specific problem was that the AST was looking for Actor/AnyActor in _Concurrency... but I named the module of the test borrowing (for some reason). So the machinery was failing to think that my stubbed out protocols where the true known protocols. By changing the module name to _Concurrency, everything worked out.
1 parent f51a050 commit 4aea60c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test/SIL/Serialization/isolated_parameters.sil

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// RUN: %empty-directory(%t)
2-
// RUN: %target-sil-opt %s -emit-sib -o %t/tmp.sib -module-name borrow
3-
// RUN: %target-sil-opt %t/tmp.sib -o %t/tmp.2.sib -module-name borrow
4-
// RUN: %target-sil-opt %t/tmp.2.sib -module-name borrow -emit-sorted-sil | %FileCheck %s
2+
// RUN: %target-sil-opt %s -emit-sib -o %t/tmp.sib -module-name _Concurrency
3+
// RUN: %target-sil-opt %t/tmp.sib -o %t/tmp.2.sib -module-name _Concurrency
4+
// RUN: %target-sil-opt %t/tmp.2.sib -module-name _Concurrency -emit-sorted-sil | %FileCheck %s
55

66
// REQUIRES: asserts
77
// REQUIRES: concurrency
@@ -13,6 +13,7 @@ import Swift
1313
import SwiftShims
1414

1515
// NOTE: In SIL we do not save/print out imports, so we cannot import _Concurrency here!
16+
1617
public protocol AnyActor: AnyObject, Sendable {}
1718
public protocol Actor : AnyActor {}
1819

0 commit comments

Comments
 (0)