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.
2 parents b420190 + 57e226d commit 49e9284Copy full SHA for 49e9284
lib/SILOptimizer/Utils/CanonicalizeOSSALifetime.cpp
@@ -558,7 +558,8 @@ void CanonicalizeOSSALifetime::extendUnconsumedLiveness(
558
559
// Walk backwards from consuming blocks.
560
while (auto *block = worklist.pop()) {
561
- originalLiveBlocks.insert(block);
+ if (!originalLiveBlocks.insert(block))
562
+ continue;
563
for (auto *predecessor : block->getPredecessorBlocks()) {
564
// If the block was discovered by liveness, we already added it to the
565
// set.
0 commit comments