Skip to content

Commit

Permalink
[CaptureTracking] Avoid duplicate shouldExplode() check (NFCI)
Browse files Browse the repository at this point in the history
We check shouldExplore() before adding uses to the worklist, so
uses that should not be explored will not reach captured() in the
first place.
  • Loading branch information
nikic committed Nov 7, 2020
1 parent 5d3332b commit bac9799
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions llvm/lib/Analysis/CaptureTracking.cpp
Expand Up @@ -159,9 +159,6 @@ namespace {
if (isa<ReturnInst>(U->getUser()) && !ReturnCaptures)
return false;

if (!shouldExplore(U))
return false;

Captured = true;
return true;
}
Expand Down

0 comments on commit bac9799

Please sign in to comment.