Skip to content

Commit e54524d

Browse files
committed
Gardening: remove trailing whitespaces in libswift
1 parent 9438cf6 commit e54524d

File tree

7 files changed

+18
-18
lines changed

7 files changed

+18
-18
lines changed

SwiftCompilerSources/Sources/Optimizer/Analysis/AliasAnalysis.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import SIL
1515

1616
struct AliasAnalysis {
1717
let bridged: BridgedAliasAnalysis
18-
18+
1919
func mayRead(_ inst: Instruction, fromAddress: Value) -> Bool {
2020
switch AliasAnalysis_getMemBehavior(bridged, inst.bridged, fromAddress.bridged) {
2121
case MayReadBehavior, MayReadWriteBehavior, MayHaveSideEffectsBehavior:

SwiftCompilerSources/Sources/Optimizer/Analysis/CalleeAnalysis.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public struct CalleeAnalysis {
2323

2424
public struct FunctionArray : RandomAccessCollection, CustomReflectable {
2525
fileprivate let bridged: BridgedCalleeList
26-
26+
2727
public var startIndex: Int { 0 }
2828
public var endIndex: Int { BridgedFunctionArray_size(bridged) }
2929

SwiftCompilerSources/Sources/Optimizer/InstructionPasses/SimplifyGlobalValue.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ let simplifyGlobalValuePass = InstructionPass<GlobalValueInst>(
3131
users.removeAll()
3232
}
3333
})
34-
34+
3535
/// Returns true if reference counting and debug_value users of a global_value
3636
/// can be deleted.
3737
private func checkUsers(of val: Value, users: inout StackList<Instruction>) -> Bool {

SwiftCompilerSources/Sources/Optimizer/InstructionPasses/SimplifyStrongRetainRelease.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ let simplifyStrongRetainPass = InstructionPass<StrongRetainInst>(
4444
}
4545
}
4646
})
47-
47+
4848
let simplifyStrongReleasePass = InstructionPass<StrongReleaseInst>(
4949
name: "simplify-strong_release", {
5050
(release: StrongReleaseInst, context: PassContext) in
@@ -65,7 +65,7 @@ let simplifyStrongReleasePass = InstructionPass<StrongReleaseInst>(
6565
}
6666
}
6767
})
68-
68+
6969
/// Returns true if \p value is something where reference counting instructions
7070
/// don't have any effect.
7171
private func isNotReferenceCounted(value: Value, context: PassContext) -> Bool {

SwiftCompilerSources/Sources/Optimizer/PassManager/PassUtils.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,16 @@ public typealias BridgedInstructionPassCtxt =
2121
struct PassContext {
2222

2323
fileprivate let passContext: BridgedPassContext
24-
24+
2525
var isSwift51RuntimeAvailable: Bool {
2626
PassContext_isSwift51RuntimeAvailable(passContext) != 0
2727
}
28-
28+
2929
var aliasAnalysis: AliasAnalysis {
3030
let bridgedAA = PassContext_getAliasAnalysis(passContext)
3131
return AliasAnalysis(bridged: bridgedAA)
3232
}
33-
33+
3434
var calleeAnalysis: CalleeAnalysis {
3535
let bridgeCA = PassContext_getCalleeAnalysis(passContext)
3636
return CalleeAnalysis(bridged: bridgeCA)
@@ -52,7 +52,7 @@ struct PassContext {
5252
}
5353
}
5454
}
55-
55+
5656
if instruction is FullApplySite {
5757
PassContext_notifyChanges(passContext, callsChanged)
5858
}

SwiftCompilerSources/Sources/SIL/BasicBlock.swift

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ final public class BasicBlock : ListNode, CustomStringConvertible {
3131
public var reverseInstructions: ReverseList<Instruction> {
3232
ReverseList(startAt: SILBasicBlock_lastInst(bridged).instruction)
3333
}
34-
34+
3535
public var terminator: TermInst {
3636
SILBasicBlock_lastInst(bridged).instruction as! TermInst
3737
}
3838

3939
public var successors: SuccessorArray { terminator.successors }
40-
40+
4141
public var predecessors: PredecessorList {
4242
PredecessorList(startAt: SILBasicBlock_getFirstPred(bridged))
4343
}
@@ -60,7 +60,7 @@ final public class BasicBlock : ListNode, CustomStringConvertible {
6060
}
6161
fatalError()
6262
}
63-
63+
6464
public var label: String { "bb\(index)" }
6565

6666
var bridged: BridgedBasicBlock { BridgedBasicBlock(obj: SwiftObject(self)) }
@@ -82,20 +82,20 @@ public struct ArgumentArray : RandomAccessCollection {
8282

8383
public struct SuccessorArray : RandomAccessCollection, CustomReflectable {
8484
private let succArray: BridgedArrayRef
85-
85+
8686
init(succArray: BridgedArrayRef) {
8787
self.succArray = succArray
8888
}
89-
89+
9090
public var startIndex: Int { return 0 }
9191
public var endIndex: Int { return Int(succArray.numElements) }
92-
92+
9393
public subscript(_ index: Int) -> BasicBlock {
9494
precondition(index >= 0 && index < endIndex)
9595
let s = BridgedSuccessor(succ: succArray.data + index &* BridgedSuccessorSize);
9696
return SILSuccessor_getTargetBlock(s).block
9797
}
98-
98+
9999
public var customMirror: Mirror {
100100
let c: [Mirror.Child] = map { (label: nil, value: $0.label) }
101101
return Mirror(self, children: c)
@@ -104,7 +104,7 @@ public struct SuccessorArray : RandomAccessCollection, CustomReflectable {
104104

105105
public struct PredecessorList : Sequence, IteratorProtocol, CustomReflectable {
106106
private var currentSucc: OptionalBridgedSuccessor
107-
107+
108108
public init(startAt: OptionalBridgedSuccessor) { currentSucc = startAt }
109109

110110
public mutating func next() -> BasicBlock? {

SwiftCompilerSources/Sources/SIL/Builder.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public struct Builder {
6060
return cf.getAs(CondFailInst.self)
6161
}
6262
}
63-
63+
6464
public func createIntegerLiteral(_ value: Int, type: Type) -> IntegerLiteralInst {
6565
notifyInstructionsChanged()
6666
let literal = SILBuilder_createIntegerLiteral(

0 commit comments

Comments
 (0)