Skip to content

Commit 81ca8fd

Browse files
committed
Enable NonEscapableType support on Windows.
SwiftCompilerSources for Windows is now fully enabled, so there is no longer any reason to gate these passes under an OS check. commit d482ab7 Author: Hiroshi Yamauchi <[email protected]> Date: Fri Dec 13 09:24:44 2024 -0800 Update the pinned toolchain for Windows and enable SwiftCompilerSources for Win/ARM64
1 parent 431138b commit 81ca8fd

File tree

3 files changed

+0
-15
lines changed

3 files changed

+0
-15
lines changed

SwiftCompilerSources/Sources/Optimizer/FunctionPasses/LifetimeDependenceDiagnostics.swift

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,6 @@ private func log(prefix: Bool = true, _ message: @autoclosure () -> String) {
3939
let lifetimeDependenceDiagnosticsPass = FunctionPass(
4040
name: "lifetime-dependence-diagnostics")
4141
{ (function: Function, context: FunctionPassContext) in
42-
#if os(Windows)
43-
if !context.options.hasFeature(.NonescapableTypes) {
44-
return
45-
}
46-
#endif
4742
log(prefix: false, "\n--- Diagnosing lifetime dependence in \(function.name)")
4843
log("\(function)")
4944
log("\(function.convention)")

SwiftCompilerSources/Sources/Optimizer/FunctionPasses/LifetimeDependenceInsertion.swift

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,6 @@ private func log(prefix: Bool = true, _ message: @autoclosure () -> String) {
3131
let lifetimeDependenceInsertionPass = FunctionPass(
3232
name: "lifetime-dependence-insertion")
3333
{ (function: Function, context: FunctionPassContext) in
34-
#if os(Windows)
35-
if !context.options.hasFeature(.NonescapableTypes) {
36-
return
37-
}
38-
#endif
3934
log(prefix: false, "\n--- Inserting lifetime dependence markers in \(function.name)")
4035

4136
for instruction in function.instructions {

SwiftCompilerSources/Sources/Optimizer/FunctionPasses/LifetimeDependenceScopeFixup.swift

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,6 @@ private func log(prefix: Bool = true, _ message: @autoclosure () -> String) {
102102
let lifetimeDependenceScopeFixupPass = FunctionPass(
103103
name: "lifetime-dependence-scope-fixup")
104104
{ (function: Function, context: FunctionPassContext) in
105-
#if os(Windows)
106-
if !context.options.hasFeature(.NonescapableTypes) {
107-
return
108-
}
109-
#endif
110105
log(prefix: false, "\n--- Scope fixup for lifetime dependence in \(function.name)")
111106

112107
let localReachabilityCache = LocalVariableReachabilityCache()

0 commit comments

Comments
 (0)