Skip to content

Commit 9ecf7ee

Browse files
committed
Merge pull request #610 from frootloops/patch-3
Fix some guidelines violations and typos
2 parents d09e084 + 65f336b commit 9ecf7ee

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

lib/SILOptimizer/LoopTransforms/ArrayBoundsCheckOpts.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -919,7 +919,7 @@ class AccessFunction {
919919
}
920920

921921
/// Hoists the necessary check for beginning and end of the induction
922-
/// encapsulated by this acess function to the header.
922+
/// encapsulated by this access function to the header.
923923
void hoistCheckToPreheader(ArraySemanticsCall CheckToHoist,
924924
SILBasicBlock *Preheader,
925925
DominanceInfo *DT) {

test/SILGen/coverage_member_closure.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ class C {
1010

1111
// Closures in members show up at the end of the constructor's map.
1212
// CHECK-NOT: sil_coverage_map
13-
// CHECK: [[@LINE+1]]:55 -> [[@LINE+1]]:77 : 2
14-
var completionHandler: (String, [String]) -> Void = {(foo, bar) in return}
13+
// CHECK: [[@LINE+1]]:55 -> [[@LINE+1]]:79 : 2
14+
var completionHandler: (String, [String]) -> Void = { (foo, bar) in return }
1515
}

test/sil-extract/basic.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,17 +69,17 @@ struct X {
6969
}
7070

7171
class Vehicle {
72-
var num_of_wheels: Int
72+
var numOfWheels: Int
7373

7474
init(n: Int) {
75-
num_of_wheels = n
75+
numOfWheels = n
7676
}
7777

7878
func now() -> Int {
79-
return num_of_wheels;
79+
return numOfWheels
8080
}
8181
}
8282

8383
func foo() -> Int {
84-
return 7;
84+
return 7
8585
}

0 commit comments

Comments
 (0)