Skip to content

Commit 65b523a

Browse files
committed
[gardening] camelCase helper functions correctly.
1 parent b559855 commit 65b523a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/SILOptimizer/IPO/CapturePromotion.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,7 @@ static SILArgument *getBoxFromIndex(SILFunction *F, unsigned Index) {
589589
/// for the address of the box's contents), return true if the closure is known
590590
/// not to mutate the captured variable.
591591
static bool
592-
isNonmutatingCapture(SILArgument *BoxArg) {
592+
isNonMutatingCapture(SILArgument *BoxArg) {
593593
SmallVector<ProjectBoxInst*, 2> Projections;
594594

595595
// Conservatively do not allow any use of the box argument other than a
@@ -636,7 +636,7 @@ isNonmutatingCapture(SILArgument *BoxArg) {
636636
/// instruction which possibly mutates the contents of the box, then add it to
637637
/// the Mutations vector.
638638
static bool
639-
isNonescapingUse(Operand *O, SmallVectorImpl<SILInstruction*> &Mutations) {
639+
isNonEscapingUse(Operand *O, SmallVectorImpl<SILInstruction*> &Mutations) {
640640
auto *U = O->getUser();
641641
if (U->isTypeDependentOperand(*O))
642642
return true;
@@ -668,7 +668,7 @@ isNonescapingUse(Operand *O, SmallVectorImpl<SILInstruction*> &Mutations) {
668668
Mutations.push_back(U);
669669

670670
for (auto *UO : U->getUses())
671-
if (!isNonescapingUse(UO, Mutations))
671+
if (!isNonEscapingUse(UO, Mutations))
672672
return false;
673673
return true;
674674
}
@@ -744,7 +744,7 @@ examineAllocBoxInst(AllocBoxInst *ABI, ReachabilityInfo &RI,
744744
// Verify that this closure is known not to mutate the captured value; if
745745
// it does, then conservatively refuse to promote any captures of this
746746
// value.
747-
if (!isNonmutatingCapture(BoxArg))
747+
if (!isNonMutatingCapture(BoxArg))
748748
return false;
749749

750750
// Record the index and continue.
@@ -763,14 +763,14 @@ examineAllocBoxInst(AllocBoxInst *ABI, ReachabilityInfo &RI,
763763
}
764764

765765
for (Operand *AddrOp : Addr->getUses()) {
766-
if (!isNonescapingUse(AddrOp, Mutations))
766+
if (!isNonEscapingUse(AddrOp, Mutations))
767767
return false;
768768
}
769769
continue;
770770
}
771771
// Verify that this use does not otherwise allow the alloc_box to
772772
// escape.
773-
if (!isNonescapingUse(O, Mutations))
773+
if (!isNonEscapingUse(O, Mutations))
774774
return false;
775775
}
776776

0 commit comments

Comments
 (0)