Skip to content

Commit 1619d52

Browse files
Merge pull request #1708 from practicalswift/typo-fixes-20160316
[gardening] Fix recently introduced typos
2 parents 5ea595a + 6f53d02 commit 1619d52

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

include/swift/SILOptimizer/Analysis/CallerAnalysis.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ class CallerAnalysis : public SILAnalysis {
7878

7979
/// Return true if the function has a caller inside current module.
8080
bool existCaller(SILFunction *F) {
81-
// Recompute every function in the invaldiated function list and empty the
81+
// Recompute every function in the invalidated function list and empty the
8282
// list.
8383
for (auto &F : RecomputeFunctionList) {
8484
processFunctionCallSites(F);

lib/Parse/ParseSIL.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ namespace swift {
4242
/// the location for where the reference is.
4343
llvm::DenseMap<Identifier,
4444
std::pair<SILFunction*, SourceLoc>> ForwardRefFns;
45-
/// A list of all functions foward-declared by a sil_scope.
45+
/// A list of all functions forward-declared by a sil_scope.
4646
std::vector<SILFunction *> PotentialZombieFns;
4747

4848
/// A map from textual .sil scope number to SILDebugScopes.

lib/SILOptimizer/Analysis/CallerAnalysis.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ void CallerAnalysis::processFunctionCallSites(SILFunction *F) {
4141
SILFunction *CalleeFn = getCallee(Apply);
4242
if (!CalleeFn)
4343
continue;
44-
// Update the callee information for this fucntion.
44+
// Update the callee information for this function.
4545
CallerAnalysisFunctionInfo &CallerInfo
4646
= CallInfo.FindAndConstruct(F).second;
4747
CallerInfo.Callees.push_back(CalleeFn);

lib/SILOptimizer/IPO/FunctionSignatureOpts.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ STATISTIC(NumSROAArguments, "Total SROA arguments optimized");
4848

4949
typedef SmallVector<FullApplySite, 8> ApplyList;
5050
//===----------------------------------------------------------------------===//
51-
// Argument and Result Optimzer
51+
// Argument and Result Optimizer
5252
//===----------------------------------------------------------------------===//
5353

5454
static void

0 commit comments

Comments
 (0)