Skip to content

Commit ce7a104

Browse files
[gardening] Fix accidental double and triple spaces.
1 parent 456d91f commit ce7a104

11 files changed

+19
-19
lines changed

lib/IRGen/IRGenDebugInfo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ class IRGenDebugInfo {
137137
/// Set the location for SWIFT_ENTRY_POINT_FUNCTION.
138138
void setEntryPointLoc(IRBuilder &Builder);
139139

140-
/// Return the scope for SWIFT_ENTRY_POINT_FUNCTION.
140+
/// Return the scope for SWIFT_ENTRY_POINT_FUNCTION.
141141
llvm::DIScope *getEntryPointFn();
142142

143143
/// Emit debug info for an import declaration.

lib/Sema/MiscDiagnostics.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1061,7 +1061,7 @@ bool swift::diagnoseArgumentLabelError(TypeChecker &TC, const Expr *expr,
10611061
return false;
10621062
}
10631063

1064-
// This is a scalar-to-tuple conversion. Add the name. We "know"
1064+
// This is a scalar-to-tuple conversion. Add the name. We "know"
10651065
// that we're inside a ParenExpr, because ParenExprs are required
10661066
// by the syntax and locator resolution looks through on level of
10671067
// them.

lib/Sema/TypeChecker.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@ class TypeChecker final : public LazyResolver {
577577
return FunctionAsEscapingArg[decl];
578578
}
579579

580-
/// Record an occurrence of a function that captures inout values as a return
580+
/// Record an occurrence of a function that captures inout values as a return
581581
/// value
582582
///
583583
/// \param decl the function that occurs as a return value.

stdlib/public/core/HashedCollections.swift.gyb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ import SwiftShims
124124
// declared its actual type parameters. Similarly, the empty singleton would
125125
// have to declare its actual type parameters. If the singleton was, for
126126
// instance, a `HashableStorage<(), ()>`, then it would be a violation of
127-
// Swift's strict aliasing rules to pass it where a `HashableStorage<Int, Int>`
127+
// Swift's strict aliasing rules to pass it where a `HashableStorage<Int, Int>`
128128
// was expected.
129129
//
130130
// It's therefore necessary for several types to store a RawStorage, rather than

test/SILGen/errors.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ func getHungryCat(_ food: CatFood) throws -> Cat {
370370
return try dont_make_a_cat()
371371
}
372372
}
373-
// errors.getHungryCat throws (errors.CatFood) -> errors.Cat
373+
// errors.getHungryCat throws (errors.CatFood) -> errors.Cat
374374
// CHECK-LABEL: sil hidden @_TF6errors12getHungryCatFzOS_7CatFoodCS_3Cat : $@convention(thin) (CatFood) -> (@owned Cat, @error Error)
375375
// CHECK: bb0(%0 : $CatFood):
376376
// CHECK: debug_value undef : $Error, var, name "$error", argno 2

test/SILOptimizer/bridged_casts_folding.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ public func testCondCastSwiftDoubleToNSNumber() -> NSNumber? {
420420
}
421421

422422

423-
// Check optimization of casts from Swift Array to NSArray
423+
// Check optimization of casts from Swift Array to NSArray
424424

425425
var arrInt: [Int] = [1, 2, 3, 4]
426426
var arrDouble: [Double] = [1.1, 2.2, 3.3, 4.4]
@@ -488,7 +488,7 @@ public func testCondCastSwiftToNSArrayString() -> NSArray? {
488488
}
489489

490490

491-
// Check optimization of casts from Swift Dict to NSDict
491+
// Check optimization of casts from Swift Dict to NSDict
492492

493493
var dictInt: [Int: Int] = [1:1, 2:2, 3:3, 4:4]
494494
var dictDouble: [Double: Double] = [1.1 : 1.1, 2.2 : 2.2, 3.3 : 3.3, 4.4 : 4.4]
@@ -556,7 +556,7 @@ public func testCondCastSwiftToNSDictString() -> NSDictionary? {
556556
}
557557

558558

559-
// Check optimization of casts from Swift Set to NSSet
559+
// Check optimization of casts from Swift Set to NSSet
560560

561561
var setInt: Set<Int> = [1, 2, 3, 4]
562562
var setDouble: Set<Double> = [1.1, 2.2, 3.3, 4.4]

test/SILOptimizer/dead_store_elim.sil

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1119,7 +1119,7 @@ bb0(%0 : $*S7):
11191119

11201120
/// We are not performing partial dead store for store %3 to %0#1 : $*S7,
11211121
/// i.e. too many stores generated, but make sure we track the store correctly
1122-
/// so that we can get rid of store %56 to %57 : $*Int.
1122+
/// so that we can get rid of store %56 to %57 : $*Int.
11231123
///
11241124
/// CHECK-LABEL : partial_dead_store_bail_out_proper_propagation
11251125
/// CHECK: bb0

test/SILOptimizer/devirt_inherited_conformance.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ public func testCompareEquals() -> Bool {
173173

174174

175175

176-
// Check that acall of inherited Simple.== can be devirtualized.
176+
// Check that a call of inherited Simple.== can be devirtualized.
177177
// CHECK-LABEL: sil @_TF28devirt_inherited_conformance20testCompareMinMinMinFT_Sb : $@convention(thin) () -> Bool {
178178
// CHECK: bb0
179179
// CHECK-NEXT: integer_literal $Builtin.Int1, -1

test/SILOptimizer/devirt_jump_thread.sil

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ bb0(%0 : $Int32, %1 : $FooClass):
4343
// devirt_jump_thread.FooClass.foo (devirt_jump_thread.FooClass)(Swift.Int32) -> Swift.Int32
4444
sil [noinline] @_TFC18devirt_jump_thread8FooClass3foofS0_FSiSi : $@convention(method) (Int32, @guaranteed FooClass) -> Int32 {
4545
bb0(%0 : $Int32, %1 : $FooClass):
46-
// function_ref @!objc with unmangled suffix "no2g__TFC18devirt_jump_thread8FooClass3foofS0_FSiSi"
46+
// function_ref @!objc with unmangled suffix "no2g__TFC18devirt_jump_thread8FooClass3foofS0_FSiSi"
4747
%2 = function_ref @_TTOS_no2g__TFC18devirt_jump_thread8FooClass3foofS0_FSiSi : $@convention(method) (Int32, @guaranteed FooClass) -> Int32 // user: %3
4848
%3 = apply %2(%0, %1) : $@convention(method) (Int32, @guaranteed FooClass) -> Int32 // user: %6
4949
return %3 : $Int32 // id: %6
@@ -108,7 +108,7 @@ bb4(%26 : $Int32): // Preds: bb11 bb12
108108
return %32 : $Int32 // id: %33
109109

110110
bb5(%34 : $FooClass): // Preds: bb0
111-
// function_ref @!objc with unmangled suffix "no2g__TFC18devirt_jump_thread8FooClass3foofS0_FSiSi"
111+
// function_ref @!objc with unmangled suffix "no2g__TFC18devirt_jump_thread8FooClass3foofS0_FSiSi"
112112
%35 = function_ref @_TTOS_no2g__TFC18devirt_jump_thread8FooClass3foofS0_FSiSi : $@convention(method) (Int32, @guaranteed FooClass) -> Int32 // user: %37
113113
strong_retain %0 : $FooClass // id: %36
114114
%37 = apply %35(%2, %34) : $@convention(method) (Int32, @guaranteed FooClass) -> Int32 // user: %40
@@ -123,7 +123,7 @@ bb6: // Preds: bb0
123123
br bb1(%43 : $Int32) // id: %44
124124

125125
bb7(%45 : $FooClass): // Preds: bb1
126-
// function_ref @!objc with unmangled suffix "no2g__TFC18devirt_jump_thread8FooClass3foofS0_FSiSi"
126+
// function_ref @!objc with unmangled suffix "no2g__TFC18devirt_jump_thread8FooClass3foofS0_FSiSi"
127127
%46 = function_ref @_TTOS_no2g__TFC18devirt_jump_thread8FooClass3foofS0_FSiSi : $@convention(method) (Int32, @guaranteed FooClass) -> Int32 // user: %48
128128
strong_retain %0 : $FooClass // id: %47
129129
%48 = apply %46(%2, %45) : $@convention(method) (Int32, @guaranteed FooClass) -> Int32 // user: %51
@@ -138,7 +138,7 @@ bb8: // Preds: bb1
138138
br bb2(%54 : $Int32) // id: %55
139139

140140
bb9(%56 : $FooClass): // Preds: bb2
141-
// function_ref @!objc with unmangled suffix "no2g__TFC18devirt_jump_thread8FooClass3foofS0_FSiSi"
141+
// function_ref @!objc with unmangled suffix "no2g__TFC18devirt_jump_thread8FooClass3foofS0_FSiSi"
142142
%57 = function_ref @_TTOS_no2g__TFC18devirt_jump_thread8FooClass3foofS0_FSiSi : $@convention(method) (Int32, @guaranteed FooClass) -> Int32 // user: %59
143143
strong_retain %0 : $FooClass // id: %58
144144
%59 = apply %57(%15, %56) : $@convention(method) (Int32, @guaranteed FooClass) -> Int32 // user: %62
@@ -153,7 +153,7 @@ bb10: // Preds: bb2
153153
br bb3(%65 : $Int32) // id: %66
154154

155155
bb11(%67 : $FooClass): // Preds: bb3
156-
// function_ref @!objc with unmangled suffix "no2g__TFC18devirt_jump_thread8FooClass3foofS0_FSiSi"
156+
// function_ref @!objc with unmangled suffix "no2g__TFC18devirt_jump_thread8FooClass3foofS0_FSiSi"
157157
%68 = function_ref @_TTOS_no2g__TFC18devirt_jump_thread8FooClass3foofS0_FSiSi : $@convention(method) (Int32, @guaranteed FooClass) -> Int32 // user: %69
158158
%69 = apply %68(%24, %67) : $@convention(method) (Int32, @guaranteed FooClass) -> Int32 // user: %72
159159
fix_lifetime %67 : $FooClass // id: %70
@@ -328,7 +328,7 @@ bb6: // Preds: bb1
328328
br bb2(%28 : $Int32) // id: %29
329329
}
330330

331-
// @!objc with unmangled suffix "no2g__TFC18devirt_jump_thread8FooClass3foofS0_FSiSi"
331+
// @!objc with unmangled suffix "no2g__TFC18devirt_jump_thread8FooClass3foofS0_FSiSi"
332332
sil [noinline] @_TTOS_no2g__TFC18devirt_jump_thread8FooClass3foofS0_FSiSi : $@convention(method) (Int32, @guaranteed FooClass) -> Int32 {
333333
bb0(%0 : $Int32, %1 : $FooClass):
334334
%2 = integer_literal $Builtin.Int32, 11 // user: %5

test/SILOptimizer/sil_combine.sil

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -440,8 +440,8 @@ enum U {
440440
// CHECK-NEXT: tuple ({{%[0-9]+}} : $U, {{%[0-9]+}} : $U, [[INVALID_CASE]] : $U)
441441
// CHECK-NEXT: return
442442
//
443-
// release_value of an enum without any payload or with a trivial
444-
// typed payload is a no-op. Leave enums with non-trivial payloads
443+
// release_value of an enum without any payload or with a trivial
444+
// typed payload is a no-op. Leave enums with non-trivial payloads
445445
// alone.
446446
//
447447
// rdar://15568314

test/SILOptimizer/specialize_deep_generics.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ struct PlusOne<X : Nat> : Nat {
1919

2020
// Compiler used to keep performing the generic specialization of
2121
// computeNat for increasingly deeply nested bound generic types
22-
// like PlusOne<PlusOne<....<PlusOne<Zero>>>
22+
// like PlusOne<PlusOne<....<PlusOne<Zero>>>
2323
func computeNat<T: Nat>(_ v : Int32, _ t: T) -> Int32 {
2424
if v == 0 {
2525
return t.val

0 commit comments

Comments
 (0)