Skip to content

Commit 027070a

Browse files
committed
[NFC] CapturePromotion: Use macro.
Keep to a single spelling for an "always OK" instruction.
1 parent 986d155 commit 027070a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/SILOptimizer/Mandatory/CapturePromotion.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1072,10 +1072,9 @@ class NonEscapingUserVisitor
10721072
ALWAYS_NON_ESCAPING_INST(DestroyValue)
10731073
ALWAYS_NON_ESCAPING_INST(EndBorrow)
10741074
ALWAYS_NON_ESCAPING_INST(DeallocBox)
1075+
ALWAYS_NON_ESCAPING_INST(EndAccess)
10751076
#undef ALWAYS_NON_ESCAPING_INST
10761077

1077-
bool visitEndAccessInst(EndAccessInst *) { return true; }
1078-
10791078
bool visitApplyInst(ApplyInst *ai) {
10801079
auto argIndex = currentOp.get()->getOperandNumber() - 1;
10811080
SILFunctionConventions substConv(ai->getSubstCalleeType(), ai->getModule());

0 commit comments

Comments
 (0)