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 d28a12d commit 49eb3caCopy full SHA for 49eb3ca
lib/SILOptimizer/Utils/CanonicalizeInstruction.cpp
@@ -547,6 +547,8 @@ static SILBasicBlock::iterator
547
eliminateUnneededForwardingUnarySingleValueInst(SingleValueInstruction *inst,
548
CanonicalizeInstruction &pass) {
549
auto next = std::next(inst->getIterator());
550
+ if (isa<DropDeinitInst>(inst))
551
+ return next;
552
for (auto *use : getNonDebugUses(inst)) {
553
if (auto *destroy = dyn_cast<DestroyValueInst>(use->getUser())) {
554
if (destroy->isFullDeinitialization())
0 commit comments