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 {
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);
Original file line number Diff line number Diff 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 ()) {
Original file line number Diff line number Diff 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,
Original file line number Diff line number Diff 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// /
Original file line number Diff line number Diff line change @@ -823,9 +823,9 @@ class ContextualMismatch : public ConstraintFix {
823823 bool coalesceAndDiagnose (const Solution &solution,
824824 ArrayRef<ConstraintFix *> secondaryFixes,
825825 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
827827 // 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
829829 // a type is not convertible to a placeholder type.
830830 if (auto fromPlaceholder = getFromType ()->getAs <PlaceholderType>()) {
831831 if (fromPlaceholder->getOriginator ().is <ErrorExpr *>()) {
You can’t perform that action at this time.
0 commit comments