Skip to content

Commit

Permalink
Merge pull request #526 from practicalswift/fix-typos-30
Browse files Browse the repository at this point in the history
Fix typos (30 of 30)
  • Loading branch information
lattner committed Dec 15, 2015
2 parents 86f815b + de98d49 commit fd465ff
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
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

0 comments on commit fd465ff

Please sign in to comment.