From 5ce5d24d35cd4e3971c332ac7fb0ecda48ca40e5 Mon Sep 17 00:00:00 2001 From: Arsen Gasparyan Date: Thu, 17 Dec 2015 00:56:04 +0300 Subject: [PATCH 1/3] Fix the code in according to guidelines --- test/sil-extract/basic.swift | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/sil-extract/basic.swift b/test/sil-extract/basic.swift index 0de4b11a74603..6891af78088f7 100644 --- a/test/sil-extract/basic.swift +++ b/test/sil-extract/basic.swift @@ -69,17 +69,17 @@ 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 } } func foo() -> Int { - return 7; + return 7 } From 20f0b463c7d0b2f3d4e50861c1bd06f621059ed0 Mon Sep 17 00:00:00 2001 From: Arsen Gasparyan Date: Thu, 17 Dec 2015 00:56:30 +0300 Subject: [PATCH 2/3] Fix whitespaces for a closure --- test/SILGen/coverage_member_closure.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/SILGen/coverage_member_closure.swift b/test/SILGen/coverage_member_closure.swift index 1733304855788..713cfda7d7f66 100644 --- a/test/SILGen/coverage_member_closure.swift +++ b/test/SILGen/coverage_member_closure.swift @@ -10,6 +10,6 @@ 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} + // CHECK: [[@LINE+1]]:55 -> [[@LINE+1]]:79 : 2 + var completionHandler: (String, [String]) -> Void = { (foo, bar) in return } } From 65f336b8490db42d4003b2e31d37be91334a7793 Mon Sep 17 00:00:00 2001 From: Arsen Gasparyan Date: Thu, 17 Dec 2015 00:56:52 +0300 Subject: [PATCH 3/3] Fix a typo --- lib/SILOptimizer/LoopTransforms/ArrayBoundsCheckOpts.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/SILOptimizer/LoopTransforms/ArrayBoundsCheckOpts.cpp b/lib/SILOptimizer/LoopTransforms/ArrayBoundsCheckOpts.cpp index a2356bdc1ff81..61cc384a3c69c 100644 --- a/lib/SILOptimizer/LoopTransforms/ArrayBoundsCheckOpts.cpp +++ b/lib/SILOptimizer/LoopTransforms/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) {