Skip to content

Commit 8455309

Browse files
authored
Merge pull request #74766 from eeckstein/remove-stderr-reference
SwiftCompilerSources: remove references to C's stderr
2 parents ab3eaf2 + 638205e commit 8455309

File tree

2 files changed

+1
-29
lines changed

2 files changed

+1
-29
lines changed

SwiftCompilerSources/Sources/Basic/Utils.swift

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -67,31 +67,6 @@ public extension NoReflectionChildren {
6767
var customMirror: Mirror { Mirror(self, children: []) }
6868
}
6969

70-
#if !os(Windows)
71-
// TODO: https://github.com/apple/swift/issues/73252
72-
73-
public var standardError = CFileStream(fp: stderr)
74-
75-
#if os(Android) || canImport(Musl)
76-
public typealias FILEPointer = OpaquePointer
77-
#else
78-
public typealias FILEPointer = UnsafeMutablePointer<FILE>
79-
#endif
80-
81-
public struct CFileStream: TextOutputStream {
82-
var fp: FILEPointer
83-
84-
public func write(_ string: String) {
85-
fputs(string, fp)
86-
}
87-
88-
public func flush() {
89-
fflush(fp)
90-
}
91-
}
92-
93-
#endif
94-
9570
//===----------------------------------------------------------------------===//
9671
// StringRef
9772
//===----------------------------------------------------------------------===//

SwiftCompilerSources/Sources/Optimizer/FunctionPasses/LifetimeDependenceDiagnostics.swift

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,7 @@ private struct DiagnoseDependence {
126126
}
127127

128128
func reportUnknown(operand: Operand) {
129-
#if !os(Windows)
130-
// TODO: https://github.com/apple/swift/issues/73252
131-
standardError.write("Unknown use: \(operand)\n\(function)")
132-
#endif
129+
log("Unknown use: \(operand)\n\(function)")
133130
reportEscaping(operand: operand)
134131
}
135132

0 commit comments

Comments
 (0)