Skip to content

Fix some guidelines violations and typos #610

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Dec 17, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/SILOptimizer/LoopTransforms/ArrayBoundsCheckOpts.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
4 changes: 2 additions & 2 deletions test/SILGen/coverage_member_closure.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
}
8 changes: 4 additions & 4 deletions test/sil-extract/basic.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
}