Skip to content
Closed
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/SILPasses/Loop/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
2 changes: 1 addition & 1 deletion test/SILGen/coverage_member_closure.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
}
6 changes: 3 additions & 3 deletions test/sil-extract/basic.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

Expand Down