From 87f508a0b5750cc8952a5310ba4a03ab2cb9d06b Mon Sep 17 00:00:00 2001 From: Vad Drobinin Date: Fri, 4 Dec 2015 22:12:01 +0300 Subject: [PATCH 1/3] Fix the code in according to guidelines --- test/sil-extract/basic.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; } } From 45365e158fceb06e7fe2fdff4cd7963b0054627e Mon Sep 17 00:00:00 2001 From: Vad Drobinin Date: Fri, 4 Dec 2015 22:18:25 +0300 Subject: [PATCH 2/3] Fix whitespaces for a closure --- test/SILGen/coverage_member_closure.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } } From 0b198693405844ecbe3fa4b8823e8e58bc605784 Mon Sep 17 00:00:00 2001 From: Vad Drobinin Date: Fri, 4 Dec 2015 22:21:31 +0300 Subject: [PATCH 3/3] Fix a typo --- lib/SILPasses/Loop/ArrayBoundsCheckOpts.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {