Skip to content

Commit 56ecfa0

Browse files
committed
libswift: clean up SIL/StackList.swift formatting
1 parent 86c4e0d commit 56ecfa0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

SwiftCompilerSources/Sources/SIL/StackList.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public struct StackList<Element> : Sequence, CustomReflectable {
4444
var index: Int
4545
let lastSlab: BridgedSlab
4646
let endIndex: Int
47-
47+
4848
public mutating func next() -> Element? {
4949
let end = (slab.data == lastSlab.data ? endIndex : slabCapacity)
5050
if index < end {
@@ -60,7 +60,7 @@ public struct StackList<Element> : Sequence, CustomReflectable {
6060
return nil
6161
}
6262
}
63-
63+
6464
public init(context: BridgedPassContext) { self.context = context }
6565

6666
public func makeIterator() -> Iterator {
@@ -102,15 +102,15 @@ public struct StackList<Element> : Sequence, CustomReflectable {
102102
}
103103

104104
public var isEmpty: Bool { return endIndex == 0 }
105-
105+
106106
public mutating func pop() -> Element? {
107107
if isEmpty {
108108
return nil
109109
}
110110
assert(endIndex > 0)
111111
endIndex -= 1
112112
let elem = (StackList.bind(lastSlab) + endIndex).move()
113-
113+
114114
if endIndex == 0 {
115115
if lastSlab.data == firstSlab.data {
116116
_ = PassContext_freeSlab(context, lastSlab)
@@ -125,11 +125,11 @@ public struct StackList<Element> : Sequence, CustomReflectable {
125125

126126
return elem
127127
}
128-
128+
129129
public mutating func removeAll() {
130130
while pop() != nil { }
131131
}
132-
132+
133133
public var customMirror: Mirror {
134134
let c: [Mirror.Child] = map { (label: nil, value: $0) }
135135
return Mirror(self, children: c)

0 commit comments

Comments
 (0)