diff --git a/lib/SILPasses/Loop/ArrayBoundsCheckOpts.cpp b/lib/SILPasses/Loop/ArrayBoundsCheckOpts.cpp index 47a9d5e3c4ed0..b897bd7c2d183 100644 --- a/lib/SILPasses/Loop/ArrayBoundsCheckOpts.cpp +++ b/lib/SILPasses/Loop/ArrayBoundsCheckOpts.cpp @@ -919,7 +919,7 @@ class AccessFunction { } /// Hoists the necessary check for beginning and end of the induction - /// encapsulated by this acess function to the header. + /// encapsulated by this access function to the header. void hoistCheckToPreheader(ArraySemanticsCall CheckToHoist, SILBasicBlock *Preheader, DominanceInfo *DT) { diff --git a/test/SILGen/coverage_member_closure.swift b/test/SILGen/coverage_member_closure.swift index 1733304855788..fb5284a898bc5 100644 --- a/test/SILGen/coverage_member_closure.swift +++ b/test/SILGen/coverage_member_closure.swift @@ -11,5 +11,5 @@ class C { // Closures in members show up at the end of the constructor's map. // CHECK-NOT: sil_coverage_map // CHECK: [[@LINE+1]]:55 -> [[@LINE+1]]:77 : 2 - var completionHandler: (String, [String]) -> Void = {(foo, bar) in return} + var completionHandler: (String, [String]) -> Void = { (foo, bar) in return } } diff --git a/test/sil-extract/basic.swift b/test/sil-extract/basic.swift index 0de4b11a74603..22fabeba42184 100644 --- a/test/sil-extract/basic.swift +++ b/test/sil-extract/basic.swift @@ -69,14 +69,14 @@ struct X { } class Vehicle { - var num_of_wheels: Int + var numOfWheels: Int init(n: Int) { - num_of_wheels = n + numOfWheels = n } func now() -> Int { - return num_of_wheels; + return numOfWheels; } }