We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a0bcfa commit 0812484Copy full SHA for 0812484
lib/SILOptimizer/Mandatory/DefiniteInitialization.cpp
@@ -3236,15 +3236,9 @@ handleConditionalDestroys(SILValue ControlVariableAddr) {
3236
SILBuilderWithScope B(TheMemory.getUninitializedValue());
3237
Identifier ShiftRightFn, TruncateFn, CmpEqFn;
3238
3239
- unsigned NumMemoryElements = TheMemory.getNumElements();
3240
-
3241
unsigned SelfInitializedElt = TheMemory.getNumElements();
3242
unsigned SuperInitElt = TheMemory.getNumElements() - 1;
3243
3244
- // We might need an extra bit to check if self was consumed.
3245
- if (HasConditionalSelfInitialized)
3246
- ++NumMemoryElements;
3247
3248
// Utilities.
3249
3250
auto destroyMemoryElement = [&](SILLocation Loc, unsigned Elt) -> SILValue {
0 commit comments