Skip to content

Commit c26f97f

Browse files
committed
Merge pull request #772 from practicalswift/xmas-typos
Fix typos 🎁
2 parents 061cd18 + 22e1073 commit c26f97f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+64
-64
lines changed

include/swift/AST/Identifier.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ class DeclName {
255255
DeclName(ASTContext &C, Identifier baseName,
256256
ArrayRef<Identifier> argumentNames);
257257

258-
/// Retrive the 'base' name, i.e., the name that follows the introducer,
258+
/// Retrieve the 'base' name, i.e., the name that follows the introducer,
259259
/// such as the 'foo' in 'func foo(x:Int, y:Int)' or the 'bar' in
260260
/// 'var bar: Int'.
261261
Identifier getBaseName() const {

include/swift/AST/PrintOptions.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ struct PrintOptions {
247247

248248
static PrintOptions printTypeInterface(Type T, DeclContext *DC);
249249

250-
/// Retrive the print options that are suitable to print the testable interface.
250+
/// Retrieve the print options that are suitable to print the testable interface.
251251
static PrintOptions printTestableInterface() {
252252
PrintOptions result = printInterface();
253253
result.AccessibilityFilter = Accessibility::Internal;

include/swift/AST/Stmt.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ class DeferStmt : public Stmt {
217217
Expr *getCallExpr() const { return callExpr; }
218218
void setCallExpr(Expr *E) { callExpr = E; }
219219

220-
/// Dig the original users's body of the defer out for AST fidelity.
220+
/// Dig the original user's body of the defer out for AST fidelity.
221221
BraceStmt *getBodyAsWritten() const;
222222

223223
static bool classof(const Stmt *S) { return S->getKind() == StmtKind::Defer; }

include/swift/ASTSectionImporter/ASTSectionImporter.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
namespace swift {
2424
class SerializedModuleLoader;
2525

26-
/// \brief Povided a memory buffer with an entire Mach-O __apple_ast
26+
/// \brief Provided a memory buffer with an entire Mach-O __apple_ast
2727
/// section, this function makes memory buffer copies of all swift
2828
/// modules found in it and registers them using
2929
/// registerMemoryBuffer() so they can be found by loadModule(). The

include/swift/Basic/SuccessorMap.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ class SuccessorMap {
233233
return foundUpperBound;
234234
};
235235

236-
// A heler to finish the operation, given that 'cur' is an upper bound.
236+
// A helper to finish the operation, given that 'cur' is an upper bound.
237237
auto finishWithUpperBound = [&] {
238238
assert(cur->Left == nullptr);
239239
return reassemble(true);

include/swift/SIL/AbstractionPattern.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===--- AbstractionPattern.h - SIL type abstraction pattersn ---*- C++ -*-===//
1+
//===--- AbstractionPattern.h - SIL type abstraction patterns ---*- C++ -*-===//
22
//
33
// This source file is part of the Swift.org open source project
44
//

include/swift/SILOptimizer/PassManager/PassManager.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ class SILPassManager {
128128
}
129129

130130
/// \brief Reset the state of the pass manager and remove all transformation
131-
/// owned by the pass manager. Anaysis passes will be kept.
131+
/// owned by the pass manager. Analysis passes will be kept.
132132
void resetAndRemoveTransformations();
133133

134134
// Sets the name of the current optimization stage used for debugging.

include/swift/Serialization/SerializedSILLoader.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class SerializedSILLoader {
4343
/// Observe that we successfully deserialized a function body.
4444
virtual void didDeserializeFunctionBody(ModuleDecl *M, SILFunction *fn) {}
4545

46-
/// Oberve that we successfully deserialized a witness table's entries.
46+
/// Observe that we successfully deserialized a witness table's entries.
4747
virtual void didDeserializeWitnessTableEntries(ModuleDecl *M,
4848
SILWitnessTable *wt) {}
4949

lib/AST/Stmt.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ SourceLoc DeferStmt::getEndLoc() const {
165165
return tempDecl->getBody()->getEndLoc();
166166
}
167167

168-
/// Dig the original users's body of the defer out for AST fidelity.
168+
/// Dig the original user's body of the defer out for AST fidelity.
169169
BraceStmt *DeferStmt::getBodyAsWritten() const {
170170
return tempDecl->getBody();
171171
}

lib/ClangImporter/SwiftLookupTable.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ auto SwiftLookupTable::findOrCreate(StringRef baseName)
146146
// Find entries for this base name.
147147
auto known = LookupTable.find(baseName);
148148

149-
// If we found somthing, we're done.
149+
// If we found something, we're done.
150150
if (known != LookupTable.end()) return known;
151151

152152
// If there's no reader, we've found all there is to find.

lib/Frontend/SerializedDiagnosticConsumer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ void SerializedDiagnosticConsumer::emitBlockInfoBlock() {
411411
Abbrev->Add(BitCodeAbbrevOp(RECORD_FILENAME));
412412
Abbrev->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 10)); // Mapped file ID.
413413
Abbrev->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 32)); // Size.
414-
Abbrev->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 32)); // Modifcation time.
414+
Abbrev->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 32)); // Modification time.
415415
Abbrev->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 16)); // Text size.
416416
Abbrev->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Blob)); // File name text.
417417
Abbrevs.set(RECORD_FILENAME, Stream.EmitBlockInfoAbbrev(BLOCK_DIAG,

lib/IDE/CodeCompletion.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2436,7 +2436,7 @@ class CompletionLookup final : public swift::VisibleDeclConsumer {
24362436
if (HaveDot)
24372437
return;
24382438

2439-
// If instance type is type alias, showing users that the contructed
2439+
// If instance type is type alias, showing users that the constructed
24402440
// type is the typealias instead of the underlying type of the alias.
24412441
Optional<Type> Result = None;
24422442
if (auto AT = MT->getInstanceType()) {
@@ -3311,7 +3311,7 @@ class CompletionLookup final : public swift::VisibleDeclConsumer {
33113311
static bool isPotentialSignatureMatch(ArrayRef<Type> TupleEles,
33123312
ArrayRef<Type> ExprTypes,
33133313
DeclContext *DC) {
3314-
// Not likely to be a mactch if users provide more arguments than expected.
3314+
// Not likely to be a match if users provide more arguments than expected.
33153315
if (ExprTypes.size() >= TupleEles.size())
33163316
return false;
33173317
for (unsigned I = 0; I < ExprTypes.size(); ++ I) {

lib/IDE/CodeCompletionResultBuilder.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===- CodeCompletionResultBuilder.h - Bulid completion results -----------===//
1+
//===- CodeCompletionResultBuilder.h - Build completion results -----------===//
22
//
33
// This source file is part of the Swift.org open source project
44
//

lib/IRGen/ValueWitness.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ enum class ValueWitness : unsigned {
162162

163163
/// void (*destroyArray)(T *object, size_t n, witness_t *self);
164164
///
165-
/// Given a vaild array of n objects of this type, destroy the object, leaving
165+
/// Given a valid array of n objects of this type, destroy the object, leaving
166166
/// the array invalid. This is useful when generically destroying an array of
167167
/// objects to avoid calling the scalar 'destroy' witness in a loop.
168168
DestroyArray,

lib/Parse/ParsePattern.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ mapParsedParameters(Parser &parser,
467467
if (isKeywordArgumentByDefault || param.PoundLoc.isValid()) {
468468
argName = param.FirstName;
469469

470-
// THe pound is going away. Complain.
470+
// The pound is going away. Complain.
471471
if (param.PoundLoc.isValid()) {
472472
if (isKeywordArgumentByDefault) {
473473
parser.diagnose(param.PoundLoc, diag::parameter_extraneous_pound,

lib/Parse/ParseSIL.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3726,7 +3726,7 @@ bool Parser::parseDeclSIL() {
37263726
if (FunctionState.diagnoseProblems())
37273727
return true;
37283728

3729-
// If SIL prsing succeeded, verify the generated SIL.
3729+
// If SIL parsing succeeded, verify the generated SIL.
37303730
if (!FunctionState.P.Diags.hadAnyError())
37313731
FunctionState.F->verify();
37323732

lib/SIL/DynamicCasts.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ swift::classifyDynamicCast(Module *M,
400400

401401
// FIXME: tuple conversions?
402402

403-
// FIXME: Be more careful with briding conversions from
403+
// FIXME: Be more careful with bridging conversions from
404404
// NSArray, NSDictionary and NSSet as they may fail?
405405

406406
// Check if there might be a bridging conversion.

lib/SIL/Projection.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -840,7 +840,7 @@ processUsersOfValue(ProjectionTree &Tree,
840840
"Adding to non projection user!\b");
841841

842842
// The only projection which we do not currently handle are enums since we
843-
// may not know the correct case. This can be xtended in the future.
843+
// may not know the correct case. This can be extended in the future.
844844
addNonProjectionUser(Op);
845845
}
846846
}

lib/SIL/SILFunctionType.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ static CanType getKnownType(Optional<CanType> &cacheSlot, ASTContext &C,
6464
}
6565
CanType t = *cacheSlot;
6666

67-
// It is possible that we won't find a briding type (e.g. String) when we're
67+
// It is possible that we won't find a bridging type (e.g. String) when we're
6868
// parsing the stdlib itself.
6969
if (t) {
7070
DEBUG(llvm::dbgs() << "Bridging type " << moduleName << '.' << typeName

lib/SIL/SILInstructions.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -951,7 +951,7 @@ SelectValueInst::create(SILDebugLocation *Loc, SILValue Operand, SILType Type,
951951
SILFunction &F) {
952952
// Allocate enough room for the instruction with tail-allocated data for all
953953
// the case values and the SILSuccessor arrays. There are `CaseBBs.size()`
954-
// SILValuues and `CaseBBs.size() + (DefaultBB ? 1 : 0)` successors.
954+
// SILValues and `CaseBBs.size() + (DefaultBB ? 1 : 0)` successors.
955955
SmallVector<SILValue, 8> CaseValuesAndResults;
956956
for (auto pair : CaseValues) {
957957
CaseValuesAndResults.push_back(pair.first);

lib/SILGen/SILGenFunction.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ class SILGenBuilder : public SILBuilder {
201201

202202
MetatypeInst *createMetatype(SILLocation Loc, SILType Metatype);
203203

204-
// Generic pply instructions use the conformances necessary to form the call.
204+
// Generic apply instructions use the conformances necessary to form the call.
205205

206206
using SILBuilder::createApply;
207207

lib/SILGen/SILGenPattern.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1296,7 +1296,7 @@ void PatternMatchEmission::emitSpecializedDispatch(ClauseMatrix &clauses,
12961296
ArrayRef<SpecializedRow> rows,
12971297
const FailureHandler &innerFailure) {
12981298
// These two operations must follow the same rules for column
1299-
// placement because 'arguments' are parallel to the matrix colums.
1299+
// placement because 'arguments' are parallel to the matrix columns.
13001300
// We use the column-specialization algorithm described in
13011301
// specializeInPlace.
13021302
ClauseMatrix innerClauses = clauses.specializeRowsInPlace(column, rows);

lib/SILOptimizer/Analysis/AliasAnalysis.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,7 @@ AliasResult AliasAnalysis::aliasInner(SILValue V1, SILValue V2,
599599
// uses the connection graph to check if the pointers may point to the same
600600
// content.
601601
// Note that escape analysis must work with the original pointers and not the
602-
// underlying objects because it treats projecetions differently.
602+
// underlying objects because it treats projections differently.
603603
if (!EA->canPointToSameMemory(V1, V2)) {
604604
DEBUG(llvm::dbgs() << " Found not-aliased objects based on"
605605
"escape analysis\n");

lib/SILOptimizer/Analysis/ColdBlockInfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ enum BranchHint : unsigned {
3434
};
3535
} // namespace
3636

37-
/// \return a BranHint if this call is a builtin branch hint.
37+
/// \return a BranchHint if this call is a builtin branch hint.
3838
static BranchHint getBranchHint(SILValue Cond) {
3939
// Handle the fully inlined Builtin.
4040
if (auto *BI = dyn_cast<BuiltinInst>(Cond)) {

lib/SILOptimizer/Analysis/EscapeAnalysis.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ updatePointsTo(CGNode *InitialNode, CGNode *pointsTo) {
300300
// Here we handle a special case: all defer-edge paths must eventually end
301301
// in a points-to edge to pointsTo. We ensure this by setting the edge on
302302
// nodes which have no defer-successors (see above). But this does not cover
303-
// the case where there is a terminating cyle in the defer-edge path,
303+
// the case where there is a terminating cycle in the defer-edge path,
304304
// e.g. A -> B -> C -> B
305305
// We find all nodes which don't reach a points-to edge and add additional
306306
// points-to edges to fix that.

lib/SILOptimizer/IPO/ClosureSpecializer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ static void rewriteApplyInst(const CallSiteDescriptor &CSDesc,
314314
// executed more frequently than the closure (for example, if the closure is
315315
// created in a loop preheader and the callee taking the closure is executed
316316
// in the loop). In such a case we must keep the argument live across the
317-
// call site of the callee and emit a matching retain for every innvocation
317+
// call site of the callee and emit a matching retain for every invocation
318318
// of the callee.
319319
//
320320
// %closure = partial_apply (%arg)

lib/SILOptimizer/IPO/PerformanceInliner.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1289,7 +1289,7 @@ void SILPerformanceInliner::visitColdBlocks(
12891289

12901290

12911291
//===----------------------------------------------------------------------===//
1292-
// Performane Inliner Pass
1292+
// Performance Inliner Pass
12931293
//===----------------------------------------------------------------------===//
12941294

12951295
namespace {

lib/SILOptimizer/LoopTransforms/COWArrayOpt.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ bool COWArrayOpt::checkUniqueArrayContainer(SILValue ArrayContainer) {
449449
return false;
450450
}
451451

452-
/// Lazilly compute blocks that may reach the loop.
452+
/// Lazily compute blocks that may reach the loop.
453453
SmallPtrSetImpl<SILBasicBlock*> &COWArrayOpt::getReachingBlocks() {
454454
if (ReachingBlocks.empty()) {
455455
SmallVector<SILBasicBlock*, 8> Worklist;
@@ -1770,7 +1770,7 @@ class ArrayPropertiesAnalysis {
17701770
return false;
17711771
}
17721772

1773-
// Otherwise, all of our users are sane. The array does not scape.
1773+
// Otherwise, all of our users are sane. The array does not escape.
17741774
return true;
17751775
}
17761776

lib/SILOptimizer/LoopTransforms/LICM.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ static bool sinkFixLiftime(SILLoop *Loop, DominanceInfo *DomTree,
371371
}
372372

373373
namespace {
374-
/// \brief Summmary of may writes occurring in the loop tree rooted at \p
374+
/// \brief Summary of may writes occurring in the loop tree rooted at \p
375375
/// Loop. This includes all writes of the sub loops and the loop itself.
376376
struct LoopNestSummary {
377377
SILLoop *Loop;

lib/SILOptimizer/Mandatory/ConstantPropagation.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ static SILInstruction *constantFoldBinary(BuiltinInst *BI,
366366
}
367367
}
368368

369-
static std::pair<bool, bool> getTypeSigndness(const BuiltinInfo &Builtin) {
369+
static std::pair<bool, bool> getTypeSignedness(const BuiltinInfo &Builtin) {
370370
bool SrcTySigned =
371371
(Builtin.ID == BuiltinValueKind::SToSCheckedTrunc ||
372372
Builtin.ID == BuiltinValueKind::SToUCheckedTrunc ||
@@ -503,7 +503,7 @@ constantFoldAndCheckIntegerConversions(BuiltinInst *BI,
503503
// Otherwise report the overflow error.
504504
if (Literal) {
505505
bool SrcTySigned, DstTySigned;
506-
std::tie(SrcTySigned, DstTySigned) = getTypeSigndness(Builtin);
506+
std::tie(SrcTySigned, DstTySigned) = getTypeSignedness(Builtin);
507507
SmallString<10> SrcAsString;
508508
SrcVal.toString(SrcAsString, /*radix*/10, SrcTySigned);
509509

@@ -521,7 +521,7 @@ constantFoldAndCheckIntegerConversions(BuiltinInst *BI,
521521
// Otherwise, print the Builtin Types.
522522
} else {
523523
bool SrcTySigned, DstTySigned;
524-
std::tie(SrcTySigned, DstTySigned) = getTypeSigndness(Builtin);
524+
std::tie(SrcTySigned, DstTySigned) = getTypeSignedness(Builtin);
525525
diagnose(M.getASTContext(), Loc.getSourceLoc(),
526526
diag::integer_literal_overflow_builtin_types,
527527
DstTySigned, DstTy, SrcAsString);
@@ -540,10 +540,10 @@ constantFoldAndCheckIntegerConversions(BuiltinInst *BI,
540540

541541
// Otherwise, print the Builtin Types.
542542
} else {
543-
// Since builtin types are sign-agnostic, print the signdness
543+
// Since builtin types are sign-agnostic, print the signedness
544544
// separately.
545545
bool SrcTySigned, DstTySigned;
546-
std::tie(SrcTySigned, DstTySigned) = getTypeSigndness(Builtin);
546+
std::tie(SrcTySigned, DstTySigned) = getTypeSignedness(Builtin);
547547
diagnose(M.getASTContext(), Loc.getSourceLoc(),
548548
diag::integer_conversion_overflow_builtin_types,
549549
SrcTySigned, SrcTy, DstTySigned, DstTy);

lib/SILOptimizer/Mandatory/DiagnoseUnreachable.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ static bool constantFoldTerminator(SILBasicBlock &BB,
267267
}
268268
}
269269

270-
// Not fully covered switches will be diagnosed later. SILGen represnets
270+
// Not fully covered switches will be diagnosed later. SILGen represents
271271
// them with a Default basic block with an unrechable instruction.
272272
// We are going to produce an error on all unreachable instructions not
273273
// eliminated by DCE.

lib/SILOptimizer/PassManager/PassManager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ SILPassManager::~SILPassManager() {
433433
}
434434

435435
/// \brief Reset the state of the pass manager and remove all transformation
436-
/// owned by the pass manager. Anaysis passes will be kept.
436+
/// owned by the pass manager. Analysis passes will be kept.
437437
void SILPassManager::resetAndRemoveTransformations() {
438438
for (auto T : Transformations)
439439
delete T;

lib/SILOptimizer/SILCombiner/SILCombinerMiscVisitors.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ struct AllocStackAnalyzer : SILInstructionVisitor<AllocStackAnalyzer> {
251251
return;
252252
}
253253

254-
// Make sure tht the open_existential does not have any uses except
254+
// Make sure that the open_existential does not have any uses except
255255
// destroy_addr.
256256
for (auto *Use : getNonDebugUses(*I)) {
257257
if (!isa<DestroyAddrInst>(Use->getUser())) {
@@ -964,7 +964,7 @@ SILInstruction *SILCombiner::visitCondBranchInst(CondBranchInst *CBI) {
964964
if (!EnumOperandTy.isLoadable(SEI->getModule()))
965965
return nullptr;
966966

967-
// Result of the selec_enum should be a boolean.
967+
// Result of the select_enum should be a boolean.
968968
if (SEI->getType() != CBI->getCondition().getType())
969969
return nullptr;
970970

lib/SILOptimizer/Transforms/DeadCodeElimination.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ class DCE : public SILFunctionTransform {
9191

9292
/// Tracks if the pass changed branches.
9393
bool BranchesChanged;
94-
/// Trackes if the pass changed ApplyInsts.
94+
/// Tracks if the pass changed ApplyInsts.
9595
bool CallsChanged;
9696

9797
/// The entry point to the transformation.

lib/SILOptimizer/Transforms/DeadStoreElimination.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ class DSEContext {
393393
/// Returns the function currently being processing.
394394
SILFunction *getFn() { return F; }
395395

396-
/// Retursn the location vault of the current function.
396+
/// Returns the location vault of the current function.
397397
std::vector<LSLocation> &getLocationVault() { return LocationVault; }
398398

399399
/// Compute the kill set for the basic block. return true if the store set

lib/SILOptimizer/Transforms/RedundantLoadElimination.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ class BlockState {
273273
// use(a);
274274
//
275275
// However, by doing so, we can only do the data forwarding after the
276-
// data flow stablizes.
276+
// data flow stabilizes.
277277
//
278278
ForwardSetIn.resize(bitcnt, false);
279279
ForwardSetOut.resize(bitcnt, reachable);
@@ -414,7 +414,7 @@ class RLEContext {
414414
/// Given the bit, get the LSValue from the LSValueVault.
415415
LSValue &getLSValue(const unsigned index);
416416

417-
/// Transistively collect all the values that make up this location and
417+
/// Transitively collect all the values that make up this location and
418418
/// create a SILArgument out of them.
419419
SILValue computePredecessorLocationValue(SILBasicBlock *BB, LSLocation &L);
420420

lib/SILOptimizer/Transforms/RedundantOverflowCheckRemoval.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ class RedundantOverflowCheckRemovalPass : public SILFunctionTransform {
130130
// Perform a forward scan and use control flow and previously detected
131131
// overflow checks to remove the overflow checks.
132132

133-
// For each block in a Reverse Post Prder scan:
133+
// For each block in a Reverse Post Order scan:
134134
for (auto &BB : ReversePostOrder) {
135135
// For each instruction:
136136
for (auto Inst = BB->begin(), End = BB->end(); Inst != End; Inst++) {

0 commit comments

Comments
 (0)