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 539a969 commit 0089b62Copy full SHA for 0089b62
lib/SILOptimizer/Utils/CanonicalizeOSSALifetime.cpp
@@ -1149,6 +1149,9 @@ void CanonicalizeOSSALifetime::rewriteCopies(
1149
SmallVectorImpl<DestroyValueInst *> const &newDestroys) {
1150
assert(getCurrentDef()->getOwnershipKind() == OwnershipKind::Owned);
1151
1152
+ // Shadow defUseWorklist in order to constrain its uses.
1153
+ auto &defUseWorklist = this->defUseWorklist;
1154
+
1155
InstructionSetVector instsToDelete(getCurrentDef()->getFunction());
1156
1157
// Visit each operand in the def-use chain.
0 commit comments