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