Skip to content

Commit e805679

Browse files
Merge pull request #73460 from nate-chandler/gh73252
[Test] Reenable SIL unit tests on windows.
2 parents e7db0ec + c84e196 commit e805679

File tree

10 files changed

+1
-28
lines changed

10 files changed

+1
-28
lines changed

SwiftCompilerSources/Sources/Optimizer/Utilities/Test.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -197,10 +197,6 @@ private func functionTestThunk(
197197
let invocation = castToInvocation(fromOpaquePointer: erasedInvocation)
198198
let context = FunctionPassContext(_bridged: BridgedPassContext(invocation: passInvocation.invocation))
199199
invocation(function.function, arguments.native, context)
200-
#if !os(Windows)
201-
// TODO: https://github.com/apple/swift/issues/73252
202-
fflush(stdout)
203-
#endif
204200
}
205201

206202
/// Bitcast a thin test closure to void *.

lib/SIL/Utils/Test.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ void FunctionTest::run(SILFunction &function, Arguments &arguments,
105105
auto *fn = invocation.get<NativeSwiftInvocation>();
106106
Registry::get().getFunctionTestThunk()(fn, {&function}, {&arguments},
107107
{getSwiftPassInvocation()});
108+
fflush(stdout);
108109
}
109110
this->pass = nullptr;
110111
this->function = nullptr;

test/SILOptimizer/argument_conventions.sil

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@
55

66
// REQUIRES: swift_in_compiler
77

8-
// https://github.com/apple/swift/issues/73252
9-
// UNSUPPORTED: OS=windows-msvc
10-
118
import Builtin
129

1310
class C {}

test/SILOptimizer/borrow_introducer_unit.sil

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
//
33
// REQUIRES: swift_in_compiler
44

5-
// https://github.com/apple/swift/issues/73252
6-
// UNSUPPORTED: OS=windows-msvc
7-
85
sil_stage raw
96

107
import Builtin

test/SILOptimizer/enclosing_def_unit.sil

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
//
33
// REQUIRES: swift_in_compiler
44

5-
// https://github.com/apple/swift/issues/73252
6-
// UNSUPPORTED: OS=windows-msvc
7-
85
sil_stage raw
96

107
import Builtin

test/SILOptimizer/forwarding_utils.sil

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22

33
// REQUIRES: swift_in_compiler
44

5-
// https://github.com/apple/swift/issues/73252
6-
// UNSUPPORTED: OS=windows-msvc
7-
85
sil_stage raw
96

107
import Builtin

test/SILOptimizer/lifetime_dependence_util.sil

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@
77
// REQUIRES: asserts
88
// REQUIRES: swift_in_compiler
99

10-
// https://github.com/apple/swift/issues/73252
11-
// UNSUPPORTED: OS=windows-msvc
12-
1310
sil_stage canonical
1411

1512
import Builtin

test/SILOptimizer/opaque_values_unit.sil

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22

33
// REQUIRES: swift_in_compiler
44

5-
// https://github.com/apple/swift/issues/73252
6-
// UNSUPPORTED: OS=windows-msvc
7-
85
import Builtin
96

107
class C {}

test/SILOptimizer/ownership_liveness_unit.sil

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66

77
// REQUIRES: swift_in_compiler
88

9-
// https://github.com/apple/swift/issues/73252
10-
// UNSUPPORTED: OS=windows-msvc
11-
129
sil_stage canonical
1310

1411
import Builtin

test/SILOptimizer/test_specification_parsing.sil

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22

33
// REQUIRES: swift_in_compiler
44

5-
// https://github.com/apple/swift/issues/73252
6-
// UNSUPPORTED: OS=windows-msvc
7-
85
sil_stage raw
96

107
import Builtin

0 commit comments

Comments
 (0)