@@ -589,7 +589,7 @@ static SILArgument *getBoxFromIndex(SILFunction *F, unsigned Index) {
589
589
// / for the address of the box's contents), return true if the closure is known
590
590
// / not to mutate the captured variable.
591
591
static bool
592
- isNonmutatingCapture (SILArgument *BoxArg) {
592
+ isNonMutatingCapture (SILArgument *BoxArg) {
593
593
SmallVector<ProjectBoxInst*, 2 > Projections;
594
594
595
595
// Conservatively do not allow any use of the box argument other than a
@@ -636,7 +636,7 @@ isNonmutatingCapture(SILArgument *BoxArg) {
636
636
// / instruction which possibly mutates the contents of the box, then add it to
637
637
// / the Mutations vector.
638
638
static bool
639
- isNonescapingUse (Operand *O, SmallVectorImpl<SILInstruction*> &Mutations) {
639
+ isNonEscapingUse (Operand *O, SmallVectorImpl<SILInstruction*> &Mutations) {
640
640
auto *U = O->getUser ();
641
641
if (U->isTypeDependentOperand (*O))
642
642
return true ;
@@ -668,7 +668,7 @@ isNonescapingUse(Operand *O, SmallVectorImpl<SILInstruction*> &Mutations) {
668
668
Mutations.push_back (U);
669
669
670
670
for (auto *UO : U->getUses ())
671
- if (!isNonescapingUse (UO, Mutations))
671
+ if (!isNonEscapingUse (UO, Mutations))
672
672
return false ;
673
673
return true ;
674
674
}
@@ -744,7 +744,7 @@ examineAllocBoxInst(AllocBoxInst *ABI, ReachabilityInfo &RI,
744
744
// Verify that this closure is known not to mutate the captured value; if
745
745
// it does, then conservatively refuse to promote any captures of this
746
746
// value.
747
- if (!isNonmutatingCapture (BoxArg))
747
+ if (!isNonMutatingCapture (BoxArg))
748
748
return false ;
749
749
750
750
// Record the index and continue.
@@ -763,14 +763,14 @@ examineAllocBoxInst(AllocBoxInst *ABI, ReachabilityInfo &RI,
763
763
}
764
764
765
765
for (Operand *AddrOp : Addr->getUses ()) {
766
- if (!isNonescapingUse (AddrOp, Mutations))
766
+ if (!isNonEscapingUse (AddrOp, Mutations))
767
767
return false ;
768
768
}
769
769
continue ;
770
770
}
771
771
// Verify that this use does not otherwise allow the alloc_box to
772
772
// escape.
773
- if (!isNonescapingUse (O, Mutations))
773
+ if (!isNonEscapingUse (O, Mutations))
774
774
return false ;
775
775
}
776
776
0 commit comments