Skip to content

Commit fd465ff

Browse files
committed
Merge pull request #526 from practicalswift/fix-typos-30
Fix typos (30 of 30)
2 parents 86f815b + de98d49 commit fd465ff

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

include/swift/SIL/SILCloner.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ SILCloner<ImplClass>::visitSILBasicBlock(SILBasicBlock* BB) {
366366
// Iterate over successors to do the depth-first search.
367367
for (auto &Succ : BB->getSuccessors()) {
368368
auto BBI = BBMap.find(Succ);
369-
// Only visit a successor that has not already been visisted.
369+
// Only visit a successor that has not already been visited.
370370
if (BBI == BBMap.end()) {
371371
// Map the successor to a new BB.
372372
auto MappedBB = new (F.getModule()) SILBasicBlock(&F);

include/swift/SIL/SILFunction.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ class SILFunction
108108
/// functions into the thunk.
109109
unsigned Thunk : 2;
110110

111-
/// The visiblity of the parent class, if this is a method which is contained
111+
/// The visibility of the parent class, if this is a method which is contained
112112
/// in the vtable of that class.
113113
unsigned ClassVisibility : 2;
114114

@@ -300,7 +300,7 @@ class SILFunction
300300

301301
/// Get's the effective linkage which is used to derive the llvm linkage.
302302
/// Usually this is the same as getLinkage(), except in one case: if this
303-
/// function is a method in a class which has higher visiblity than the
303+
/// function is a method in a class which has higher visibility than the
304304
/// method itself, the function can be referenced from vtables of derived
305305
/// classes in other compilation units.
306306
SILLinkage getEffectiveSymbolLinkage() const {

lib/SILGen/LValue.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ struct LValueTypeData {
5353
/// On physical path components, projection yields an address of
5454
/// this type. On logical path components, materialize yields an
5555
/// address of this type, set expects a value of this type, and
56-
/// get yields a vlaue of this type.
56+
/// get yields a value of this type.
5757
SILType TypeOfRValue;
5858

5959
LValueTypeData() = default;

lib/SILOptimizer/IPO/DeadFunctionElimination.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ class FunctionLivenessComputation {
197197
}
198198
}
199199

200-
/// Retrieve the visiblity information from the AST.
200+
/// Retrieve the visibility information from the AST.
201201
bool isVisibleExternally(ValueDecl *decl) {
202202
Accessibility accessibility = decl->getEffectiveAccess();
203203
SILLinkage linkage;

lib/Sema/CSApply.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4098,7 +4098,7 @@ Expr *ExprRewriter::coerceCallArguments(Expr *arg, Type paramType,
40984098
};
40994099

41004100
// Local function to extract the ith argument label, which papers over some
4101-
// of the weirdndess with tuples vs. parentheses.
4101+
// of the weirdness with tuples vs. parentheses.
41024102
auto getArgLabel = [&](unsigned i) -> Identifier {
41034103
if (argTuple)
41044104
return argTuple->getElementName(i);

test/SILOptimizer/performance_inliner.sil

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,7 @@ entry:
599599
}
600600

601601
// Visiblity Tests
602-
// These tests stem from a time where visiblity had an influence
602+
// These tests stem from a time where visibility had an influence
603603
// on the inlining. This is no longer the case so we just check
604604
// if everything can be inlined, regardless of visibility.
605605

0 commit comments

Comments
 (0)