Skip to content

Commit 270adf4

Browse files
committed
libswift: clean up SIL/Utils.swift formatting
1 parent 1210de1 commit 270adf4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

SwiftCompilerSources/Sources/SIL/Utils.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public struct List<NodeType: ListNode> :
2626
Sequence, IteratorProtocol, CustomReflectable
2727
where NodeType.Element == NodeType {
2828
private var currentNode: NodeType?
29-
29+
3030
public init(startAt: NodeType?) { currentNode = startAt }
3131

3232
public mutating func next() -> NodeType? {
@@ -47,7 +47,7 @@ public struct ReverseList<NodeType: ListNode> :
4747
Sequence, IteratorProtocol, CustomReflectable
4848
where NodeType.Element == NodeType {
4949
private var currentNode: NodeType?
50-
50+
5151
public init(startAt: NodeType?) { currentNode = startAt }
5252

5353
public mutating func next() -> NodeType? {
@@ -84,7 +84,7 @@ extension BridgedStringRef {
8484
let buffer = UnsafeBufferPointer<UInt8>(start: data, count: Int(length))
8585
return String(decoding: buffer, as: UTF8.self)
8686
}
87-
87+
8888
func takeString() -> String {
8989
let str = string
9090
freeBridgedStringRef(self)
@@ -117,7 +117,7 @@ extension UnsafeMutablePointer where Pointee == BridgedSwiftObject {
117117
let ptr = Unmanaged.passUnretained(object).toOpaque()
118118
self = ptr.bindMemory(to: BridgedSwiftObject.self, capacity: 1)
119119
}
120-
120+
121121
func getAs<T: AnyObject>(_ objectType: T.Type) -> T {
122122
return Unmanaged<T>.fromOpaque(self).takeUnretainedValue()
123123
}

0 commit comments

Comments
 (0)