Skip to content

Commit b82c3bd

Browse files
committed
fix typo in SIL
1 parent 1d45d97 commit b82c3bd

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

include/swift/SIL/AbstractionPatternGenerators.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ class FunctionParamGenerator {
6767
/// pattern type.
6868
AbstractionPattern origParamType = AbstractionPattern::getInvalid();
6969

70-
/// Load the informaton for the current orig parameter into the
70+
/// Load the information for the current orig parameter into the
7171
/// fields above for it.
7272
void loadParameter() {
7373
origParamType = origFunctionType.getFunctionParamType(origParamIndex);
@@ -215,7 +215,7 @@ class TupleElementGenerator {
215215
/// A scratch element that is used for vanishing tuple types.
216216
mutable TupleTypeElt scratchSubstElt;
217217

218-
/// Load the informaton for the current orig element into the
218+
/// Load the information for the current orig element into the
219219
/// fields above for it.
220220
void loadElement() {
221221
origEltType = origTupleType.getTupleElementType(origEltIndex);
@@ -371,7 +371,7 @@ class PackElementGenerator {
371371
/// pattern type.
372372
AbstractionPattern origEltType = AbstractionPattern::getInvalid();
373373

374-
/// Load the informaton for the current orig element into the
374+
/// Load the information for the current orig element into the
375375
/// fields above for it.
376376
void loadElement() {
377377
origEltType = origPackType.getPackElementType(origEltIndex);

include/swift/SIL/AddressWalker.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ TransitiveAddressWalker<Impl>::walk(SILValue projectedAddress) && {
116116
}
117117

118118
// Record all uses that aren't transitively followed. These are either
119-
// instanteneous uses of the addres, or cause a pointer escape.
119+
// instantaneous uses of the address, or cause a pointer escape.
120120
auto transitiveResultUses = [&](Operand *use) {
121121
auto *svi = cast<SingleValueInstruction>(use->getUser());
122122
if (svi->use_empty()) {

include/swift/SIL/GenericSpecializationMangler.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ class GenericSpecializationMangler : public SpecializationMangler {
103103
/// This is the default for generic specializations.
104104
///
105105
/// \param alternativeMangling true for specialized functions with a
106-
/// differet resilience expansion.
106+
/// different resilience expansion.
107107
/// \param metatyeParamsRemoved true if non-generic metatype parameters are
108108
/// removed in the specialized function.
109109
std::string mangleReabstracted(SubstitutionMap subs, bool alternativeMangling,

include/swift/SIL/PrunedLiveness.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ struct LiveRangeSummary {
333333
/// boundary. The client may later use that information to figure out how to
334334
/// "extend" a lifetime, for example by inserting copies.
335335
///
336-
/// Consequently, a branch intruction may be marked as a non-lifetime-ending
336+
/// Consequently, a branch instruction may be marked as a non-lifetime-ending
337337
/// use, but modeled as as a use point in the predecessor block. This can
338338
/// confusingly result in liveness that ends *before* value's the lifetime ends:
339339
///

0 commit comments

Comments
 (0)