@@ -90,10 +90,10 @@ inline bool isForwardingConsume(SILValue value) {
9090// / borrow scope and may be reborrowed.
9191// /
9292// / In valid OSSA, this should never be called on values that introduce a new
93- // / scope (doing so would be extremely innefficient ). The lifetime of a borrow
93+ // / scope (doing so would be extremely inefficient ). The lifetime of a borrow
9494// / introducing instruction is always determined by its direct EndBorrow uses
9595// / (see BorrowedValue::visitLocalScopeEndingUses). None of the non-scope-ending
96- // / uses are relevant, and there's no need to transively follow forwarding
96+ // / uses are relevant, and there's no need to transitively follow forwarding
9797// / uses. However, this utility may be used on borrow-introducing values when
9898// / updating OSSA form to place EndBorrow uses after introducing new phis.
9999// /
@@ -136,7 +136,7 @@ bool findExtendedUsesOfSimpleBorrowedValue(
136136// / valid BorrowedValue), then its uses are discovered transitively by looking
137137// / through forwarding operations. If any use is a PointerEscape, then this
138138// / returns false without adding more uses--the guaranteed value's lifetime is
139- // / indeterminite . If a use introduces a nested borrow scope, it creates use
139+ // / indeterminate . If a use introduces a nested borrow scope, it creates use
140140// / points where the "extended" borrow scope ends. An extended borrow
141141// / scope is found by looking through any reborrows that end the nested
142142// / scope. Other uses within nested borrow scopes are ignored.
@@ -543,7 +543,7 @@ struct BorrowedValue {
543543 // / called with a scope that is not local.
544544 // /
545545 // / NOTE: To determine if a scope is a local scope, call
546- // / BorrowScopeIntoducingValue ::isLocalScope().
546+ // / BorrowScopeIntroducingValue ::isLocalScope().
547547 void getLocalScopeEndingInstructions (
548548 SmallVectorImpl<SILInstruction *> &scopeEndingInsts) const ;
549549
@@ -559,7 +559,7 @@ struct BorrowedValue {
559559 // / instructions before storing them.
560560 // /
561561 // / NOTE: To determine if a scope is a local scope, call
562- // / BorrowScopeIntoducingValue ::isLocalScope().
562+ // / BorrowScopeIntroducingValue ::isLocalScope().
563563 bool visitLocalScopeEndingUses (function_ref<bool (Operand *)> visitor) const ;
564564
565565 bool isLocalScope () const { return kind.isLocalScope (); }
@@ -799,7 +799,7 @@ struct InteriorPointerOperand {
799799 }
800800
801801 // / If \p val is a result of an instruction that is an interior pointer,
802- // / return an interor pointer operand based off of the base value operand of
802+ // / return an interior pointer operand based off of the base value operand of
803803 // / the instruction.
804804 static InteriorPointerOperand inferFromResult (SILValue resultValue) {
805805 auto kind = InteriorPointerOperandKind::inferFromResult (resultValue);
@@ -865,7 +865,7 @@ struct InteriorPointerOperand {
865865 }
866866
867867 // / Transitively compute the list of leaf uses that this interior pointer
868- // / operand puts on its parent guaranted value.
868+ // / operand puts on its parent guaranteed value.
869869 // /
870870 // / If \p foundUses is nullptr, this simply returns true if no PointerEscapes
871871 // / were found.
@@ -901,7 +901,7 @@ struct InteriorPointerOperand {
901901// / scope and interiorPointerOp is irrelevant.
902902// /
903903// / If hasOwnership() is true, then interiorPointerOp refers to the operand that
904- // / converts a non-address value into the address from which the contructor 's
904+ // / converts a non-address value into the address from which the constructor 's
905905// / address is derived. If the best-effort to find an InteriorPointerOperand
906906// / fails, then interiorPointerOp remains invalid, and clients must be
907907// / conservative.
@@ -1011,7 +1011,7 @@ class OwnedValueIntroducerKind {
10111011 // / An owned value from the formation of a new alloc_box.
10121012 AllocBoxInit,
10131013
1014- // / An owned value from the formataion of a new alloc_ref.
1014+ // / An owned value from the formation of a new alloc_ref.
10151015 AllocRefInit,
10161016 };
10171017
0 commit comments