@@ -2177,12 +2177,12 @@ static void updateControlVariable(SILLocation Loc,
2177
2177
}
2178
2178
2179
2179
// / Test a bit in the control variable at the current insertion point.
2180
- static SILValue testControlVariable (SILLocation Loc,
2181
- unsigned Elt,
2182
- SILValue ControlVariableAddr,
2183
- Identifier &ShiftRightFn,
2184
- Identifier &TruncateFn,
2185
- SILBuilder &B) {
2180
+ static SILValue testControlVariableBit (SILLocation Loc,
2181
+ unsigned Elt,
2182
+ SILValue ControlVariableAddr,
2183
+ Identifier &ShiftRightFn,
2184
+ Identifier &TruncateFn,
2185
+ SILBuilder &B) {
2186
2186
SILValue ControlVariable =
2187
2187
B.createLoad (Loc, ControlVariableAddr, LoadOwnershipQualifier::Trivial);
2188
2188
@@ -2315,9 +2315,9 @@ SILValue LifetimeChecker::handleConditionalInitAssign() {
2315
2315
// initialization.
2316
2316
for (unsigned Elt = Use.FirstElement , e = Elt+Use.NumElements ;
2317
2317
Elt != e; ++Elt) {
2318
- auto CondVal = testControlVariable (Loc, Elt, ControlVariableAddr,
2319
- ShiftRightFn, TruncateFn,
2320
- B);
2318
+ auto CondVal = testControlVariableBit (Loc, Elt, ControlVariableAddr,
2319
+ ShiftRightFn, TruncateFn,
2320
+ B);
2321
2321
2322
2322
SILBasicBlock *TrueBB, *FalseBB, *ContBB;
2323
2323
InsertCFGDiamond (CondVal, Loc, B,
@@ -2456,9 +2456,9 @@ handleConditionalDestroys(SILValue ControlVariableAddr) {
2456
2456
2457
2457
// Insert a load of the liveness bitmask and split the CFG into a diamond
2458
2458
// right before the destroy_addr, if we haven't already loaded it.
2459
- auto CondVal = testControlVariable (Loc, Elt, ControlVariableAddr,
2460
- ShiftRightFn, TruncateFn,
2461
- B);
2459
+ auto CondVal = testControlVariableBit (Loc, Elt, ControlVariableAddr,
2460
+ ShiftRightFn, TruncateFn,
2461
+ B);
2462
2462
2463
2463
SILBasicBlock *ReleaseBlock, *DeallocBlock, *ContBlock;
2464
2464
@@ -2477,11 +2477,11 @@ handleConditionalDestroys(SILValue ControlVariableAddr) {
2477
2477
// depending on if the self box was initialized or not.
2478
2478
auto emitReleaseOfSelfWhenNotConsumed = [&](SILLocation Loc,
2479
2479
SILInstruction *Release) {
2480
- auto CondVal = testControlVariable (Loc, SelfInitializedElt,
2481
- ControlVariableAddr,
2482
- ShiftRightFn,
2483
- TruncateFn,
2484
- B);
2480
+ auto CondVal = testControlVariableBit (Loc, SelfInitializedElt,
2481
+ ControlVariableAddr,
2482
+ ShiftRightFn,
2483
+ TruncateFn,
2484
+ B);
2485
2485
2486
2486
SILBasicBlock *ReleaseBlock, *ConsumedBlock, *ContBlock;
2487
2487
@@ -2564,11 +2564,11 @@ handleConditionalDestroys(SILValue ControlVariableAddr) {
2564
2564
// self.init or super.init may or may not have been called.
2565
2565
// We have not yet stored 'self' into the box.
2566
2566
2567
- auto CondVal = testControlVariable (Loc, SuperInitElt,
2568
- ControlVariableAddr,
2569
- ShiftRightFn,
2570
- TruncateFn,
2571
- B);
2567
+ auto CondVal = testControlVariableBit (Loc, SuperInitElt,
2568
+ ControlVariableAddr,
2569
+ ShiftRightFn,
2570
+ TruncateFn,
2571
+ B);
2572
2572
2573
2573
SILBasicBlock *ConsumedBlock, *DeallocBlock, *ContBlock;
2574
2574
@@ -2598,11 +2598,11 @@ handleConditionalDestroys(SILValue ControlVariableAddr) {
2598
2598
// self.init or super.init may or may not have been called.
2599
2599
// We may or may have stored 'self' into the box.
2600
2600
2601
- auto CondVal = testControlVariable (Loc, SuperInitElt,
2602
- ControlVariableAddr,
2603
- ShiftRightFn,
2604
- TruncateFn,
2605
- B);
2601
+ auto CondVal = testControlVariableBit (Loc, SuperInitElt,
2602
+ ControlVariableAddr,
2603
+ ShiftRightFn,
2604
+ TruncateFn,
2605
+ B);
2606
2606
2607
2607
SILBasicBlock *LiveBlock, *DeallocBlock, *ContBlock;
2608
2608
0 commit comments