@@ -2186,12 +2186,12 @@ static void updateControlVariable(SILLocation Loc,
2186
2186
}
2187
2187
2188
2188
// / Test a bit in the control variable at the current insertion point.
2189
- static SILValue testControlVariable (SILLocation Loc,
2190
- unsigned Elt,
2191
- SILValue ControlVariableAddr,
2192
- Identifier &ShiftRightFn,
2193
- Identifier &TruncateFn,
2194
- SILBuilder &B) {
2189
+ static SILValue testControlVariableBit (SILLocation Loc,
2190
+ unsigned Elt,
2191
+ SILValue ControlVariableAddr,
2192
+ Identifier &ShiftRightFn,
2193
+ Identifier &TruncateFn,
2194
+ SILBuilder &B) {
2195
2195
SILValue ControlVariable =
2196
2196
B.createLoad (Loc, ControlVariableAddr, LoadOwnershipQualifier::Trivial);
2197
2197
@@ -2324,9 +2324,9 @@ SILValue LifetimeChecker::handleConditionalInitAssign() {
2324
2324
// initialization.
2325
2325
for (unsigned Elt = Use.FirstElement , e = Elt+Use.NumElements ;
2326
2326
Elt != e; ++Elt) {
2327
- auto CondVal = testControlVariable (Loc, Elt, ControlVariableAddr,
2328
- ShiftRightFn, TruncateFn,
2329
- B);
2327
+ auto CondVal = testControlVariableBit (Loc, Elt, ControlVariableAddr,
2328
+ ShiftRightFn, TruncateFn,
2329
+ B);
2330
2330
2331
2331
SILBasicBlock *TrueBB, *FalseBB, *ContBB;
2332
2332
InsertCFGDiamond (CondVal, Loc, B,
@@ -2465,9 +2465,9 @@ handleConditionalDestroys(SILValue ControlVariableAddr) {
2465
2465
2466
2466
// Insert a load of the liveness bitmask and split the CFG into a diamond
2467
2467
// right before the destroy_addr, if we haven't already loaded it.
2468
- auto CondVal = testControlVariable (Loc, Elt, ControlVariableAddr,
2469
- ShiftRightFn, TruncateFn,
2470
- B);
2468
+ auto CondVal = testControlVariableBit (Loc, Elt, ControlVariableAddr,
2469
+ ShiftRightFn, TruncateFn,
2470
+ B);
2471
2471
2472
2472
SILBasicBlock *ReleaseBlock, *DeallocBlock, *ContBlock;
2473
2473
@@ -2486,11 +2486,11 @@ handleConditionalDestroys(SILValue ControlVariableAddr) {
2486
2486
// depending on if the self box was initialized or not.
2487
2487
auto emitReleaseOfSelfWhenNotConsumed = [&](SILLocation Loc,
2488
2488
SILInstruction *Release) {
2489
- auto CondVal = testControlVariable (Loc, SelfInitializedElt,
2490
- ControlVariableAddr,
2491
- ShiftRightFn,
2492
- TruncateFn,
2493
- B);
2489
+ auto CondVal = testControlVariableBit (Loc, SelfInitializedElt,
2490
+ ControlVariableAddr,
2491
+ ShiftRightFn,
2492
+ TruncateFn,
2493
+ B);
2494
2494
2495
2495
SILBasicBlock *ReleaseBlock, *ConsumedBlock, *ContBlock;
2496
2496
@@ -2573,11 +2573,11 @@ handleConditionalDestroys(SILValue ControlVariableAddr) {
2573
2573
// self.init or super.init may or may not have been called.
2574
2574
// We have not yet stored 'self' into the box.
2575
2575
2576
- auto CondVal = testControlVariable (Loc, SuperInitElt,
2577
- ControlVariableAddr,
2578
- ShiftRightFn,
2579
- TruncateFn,
2580
- B);
2576
+ auto CondVal = testControlVariableBit (Loc, SuperInitElt,
2577
+ ControlVariableAddr,
2578
+ ShiftRightFn,
2579
+ TruncateFn,
2580
+ B);
2581
2581
2582
2582
SILBasicBlock *ConsumedBlock, *DeallocBlock, *ContBlock;
2583
2583
@@ -2607,11 +2607,11 @@ handleConditionalDestroys(SILValue ControlVariableAddr) {
2607
2607
// self.init or super.init may or may not have been called.
2608
2608
// We may or may have stored 'self' into the box.
2609
2609
2610
- auto CondVal = testControlVariable (Loc, SuperInitElt,
2611
- ControlVariableAddr,
2612
- ShiftRightFn,
2613
- TruncateFn,
2614
- B);
2610
+ auto CondVal = testControlVariableBit (Loc, SuperInitElt,
2611
+ ControlVariableAddr,
2612
+ ShiftRightFn,
2613
+ TruncateFn,
2614
+ B);
2615
2615
2616
2616
SILBasicBlock *LiveBlock, *DeallocBlock, *ContBlock;
2617
2617
0 commit comments