Skip to content

Commit b1038e9

Browse files
committed
Misc inlinability fixes
1 parent a952514 commit b1038e9

File tree

5 files changed

+3
-10
lines changed

5 files changed

+3
-10
lines changed

stdlib/public/core/AssertCommon.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,6 @@ func _unimplementedInitializer(className: StaticString,
248248
Builtin.int_trap()
249249
}
250250

251-
@inlinable // FIXME(sil-serialize-all)
252251
public // COMPILER_INTRINSIC
253252
func _undefined<T>(
254253
_ message: @autoclosure () -> String = String(),

stdlib/public/core/Misc.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public func _autorelease(_ x: AnyObject) {
5151
///
5252
/// This function is primarily useful to call various runtime functions
5353
/// written in C++.
54-
@inlinable // FIXME(sil-serialize-all)
54+
@inlinable
5555
internal func _withUninitializedString<R>(
5656
_ body: (UnsafeMutablePointer<String>) -> R
5757
) -> (R, String) {
@@ -67,13 +67,11 @@ internal func _withUninitializedString<R>(
6767
// with type names that we are nested in.
6868
// But we can place it behind #if _runtime(_Native) and remove it from ABI on
6969
// Apple platforms, deferring discussions mentioned above.
70-
@inlinable // FIXME(sil-serialize-all)
7170
@_silgen_name("swift_getTypeName")
7271
public func _getTypeName(_ type: Any.Type, qualified: Bool)
7372
-> (UnsafePointer<UInt8>, Int)
7473

7574
/// Returns the demangled qualified name of a metatype.
76-
@inlinable // FIXME(sil-serialize-all)
7775
public // @testable
7876
func _typeName(_ type: Any.Type, qualified: Bool = true) -> String {
7977
let (stringPtr, count) = _getTypeName(type, qualified: qualified)

stdlib/public/core/Pointer.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,6 @@ func _convertMutableArrayToPointerArgument<
387387
}
388388

389389
/// Derive a UTF-8 pointer argument from a value string parameter.
390-
@inlinable // FIXME(sil-serialize-all)
391390
public // COMPILER_INTRINSIC
392391
func _convertConstStringToUTF8PointerArgument<
393392
ToPointer : _Pointer

stdlib/public/core/REPL.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
//===----------------------------------------------------------------------===//
1212

1313
/// Print a string as is to stdout.
14-
@inlinable // FIXME(sil-serialize-all)
1514
public // COMPILER_INTRINSIC
1615
func _replPrintLiteralString(_ text: String) {
1716
print(text, terminator: "")

stdlib/public/core/Runtime.swift.gyb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,7 @@ internal struct _Buffer32 {
175175

176176
internal mutating func withBytes<Result>(
177177
_ body: (UnsafeMutablePointer<UInt8>) throws -> Result
178-
) rethrows -> Result
179-
{
178+
) rethrows -> Result {
180179
return try withUnsafeMutablePointer(to: &self) {
181180
try body(UnsafeMutableRawPointer($0).assumingMemoryBound(to: UInt8.self))
182181
}
@@ -192,8 +191,7 @@ internal struct _Buffer72 {
192191

193192
internal mutating func withBytes<Result>(
194193
_ body: (UnsafeMutablePointer<UInt8>) throws -> Result
195-
) rethrows -> Result
196-
{
194+
) rethrows -> Result {
197195
return try withUnsafeMutablePointer(to: &self) {
198196
try body(UnsafeMutableRawPointer($0).assumingMemoryBound(to: UInt8.self))
199197
}

0 commit comments

Comments
 (0)