Skip to content

Fix typos (30 of 30) #526

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 6 commits into from
Dec 15, 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 include/swift/SIL/SILCloner.h
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ SILCloner<ImplClass>::visitSILBasicBlock(SILBasicBlock* BB) {
// Iterate over successors to do the depth-first search.
for (auto &Succ : BB->getSuccessors()) {
auto BBI = BBMap.find(Succ);
// Only visit a successor that has not already been visisted.
// Only visit a successor that has not already been visited.
if (BBI == BBMap.end()) {
// Map the successor to a new BB.
auto MappedBB = new (F.getModule()) SILBasicBlock(&F);
Expand Down
4 changes: 2 additions & 2 deletions include/swift/SIL/SILFunction.h
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ class SILFunction
/// functions into the thunk.
unsigned Thunk : 2;

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

Expand Down Expand Up @@ -300,7 +300,7 @@ class SILFunction

/// Get's the effective linkage which is used to derive the llvm linkage.
/// Usually this is the same as getLinkage(), except in one case: if this
/// function is a method in a class which has higher visiblity than the
/// function is a method in a class which has higher visibility than the
/// method itself, the function can be referenced from vtables of derived
/// classes in other compilation units.
SILLinkage getEffectiveSymbolLinkage() const {
Expand Down
2 changes: 1 addition & 1 deletion lib/SILGen/LValue.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ struct LValueTypeData {
/// On physical path components, projection yields an address of
/// this type. On logical path components, materialize yields an
/// address of this type, set expects a value of this type, and
/// get yields a vlaue of this type.
/// get yields a value of this type.
SILType TypeOfRValue;

LValueTypeData() = default;
Expand Down
2 changes: 1 addition & 1 deletion lib/SILOptimizer/IPO/DeadFunctionElimination.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ class FunctionLivenessComputation {
}
}

/// Retrieve the visiblity information from the AST.
/// Retrieve the visibility information from the AST.
bool isVisibleExternally(ValueDecl *decl) {
Accessibility accessibility = decl->getEffectiveAccess();
SILLinkage linkage;
Expand Down
2 changes: 1 addition & 1 deletion lib/Sema/CSApply.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4098,7 +4098,7 @@ Expr *ExprRewriter::coerceCallArguments(Expr *arg, Type paramType,
};

// Local function to extract the ith argument label, which papers over some
// of the weirdndess with tuples vs. parentheses.
// of the weirdness with tuples vs. parentheses.
auto getArgLabel = [&](unsigned i) -> Identifier {
if (argTuple)
return argTuple->getElementName(i);
Expand Down
2 changes: 1 addition & 1 deletion test/SILOptimizer/performance_inliner.sil
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ entry:
}

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

Expand Down