File tree Expand file tree Collapse file tree 5 files changed +8
-8
lines changed Expand file tree Collapse file tree 5 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ class FunctionParamGenerator {
67
67
// / pattern type.
68
68
AbstractionPattern origParamType = AbstractionPattern::getInvalid();
69
69
70
- // / Load the informaton for the current orig parameter into the
70
+ // / Load the information for the current orig parameter into the
71
71
// / fields above for it.
72
72
void loadParameter () {
73
73
origParamType = origFunctionType.getFunctionParamType (origParamIndex);
@@ -215,7 +215,7 @@ class TupleElementGenerator {
215
215
// / A scratch element that is used for vanishing tuple types.
216
216
mutable TupleTypeElt scratchSubstElt;
217
217
218
- // / Load the informaton for the current orig element into the
218
+ // / Load the information for the current orig element into the
219
219
// / fields above for it.
220
220
void loadElement () {
221
221
origEltType = origTupleType.getTupleElementType (origEltIndex);
@@ -371,7 +371,7 @@ class PackElementGenerator {
371
371
// / pattern type.
372
372
AbstractionPattern origEltType = AbstractionPattern::getInvalid();
373
373
374
- // / Load the informaton for the current orig element into the
374
+ // / Load the information for the current orig element into the
375
375
// / fields above for it.
376
376
void loadElement () {
377
377
origEltType = origPackType.getPackElementType (origEltIndex);
Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ TransitiveAddressWalker<Impl>::walk(SILValue projectedAddress) && {
116
116
}
117
117
118
118
// 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.
120
120
auto transitiveResultUses = [&](Operand *use) {
121
121
auto *svi = cast<SingleValueInstruction>(use->getUser ());
122
122
if (svi->use_empty ()) {
Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ class GenericSpecializationMangler : public SpecializationMangler {
103
103
// / This is the default for generic specializations.
104
104
// /
105
105
// / \param alternativeMangling true for specialized functions with a
106
- // / differet resilience expansion.
106
+ // / different resilience expansion.
107
107
// / \param metatyeParamsRemoved true if non-generic metatype parameters are
108
108
// / removed in the specialized function.
109
109
std::string mangleReabstracted (SubstitutionMap subs, bool alternativeMangling,
Original file line number Diff line number Diff line change @@ -333,7 +333,7 @@ struct LiveRangeSummary {
333
333
// / boundary. The client may later use that information to figure out how to
334
334
// / "extend" a lifetime, for example by inserting copies.
335
335
// /
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
337
337
// / use, but modeled as as a use point in the predecessor block. This can
338
338
// / confusingly result in liveness that ends *before* value's the lifetime ends:
339
339
// /
Original file line number Diff line number Diff line change @@ -823,9 +823,9 @@ class ContextualMismatch : public ConstraintFix {
823
823
bool coalesceAndDiagnose (const Solution &solution,
824
824
ArrayRef<ConstraintFix *> secondaryFixes,
825
825
bool asNote = false ) const override {
826
- // If the from type or to type is a placeholer type that corresponds to an
826
+ // If the from type or to type is a placeholder type that corresponds to an
827
827
// ErrorExpr, the issue has already been diagnosed. There's no need to
828
- // produce another diagnostic for the contextual mismatch complainting that
828
+ // produce another diagnostic for the contextual mismatch complaining that
829
829
// a type is not convertible to a placeholder type.
830
830
if (auto fromPlaceholder = getFromType ()->getAs <PlaceholderType>()) {
831
831
if (fromPlaceholder->getOriginator ().is <ErrorExpr *>()) {
You can’t perform that action at this time.
0 commit comments