Skip to content

Commit 042241a

Browse files
committed
[NFC] MoveOnlyAddressChecker: Use isWithinBoundary
Switch back to the API meant for a single instruction now that it properly handles dead-end regions.
1 parent 812891c commit 042241a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/SILOptimizer/Mandatory/MoveOnlyAddressCheckerUtils.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2052,8 +2052,8 @@ struct GatherUsesVisitor : public TransitiveAddressWalker<GatherUsesVisitor> {
20522052
liveness->initializeDef(bai);
20532053
liveness->computeSimple();
20542054
for (auto *consumingUse : li->getConsumingUses()) {
2055-
if (!liveness->areUsesWithinBoundary(
2056-
{consumingUse},
2055+
if (!liveness->isWithinBoundary(
2056+
consumingUse->getUser(),
20572057
moveChecker.deba->get(consumingUse->getFunction()))) {
20582058
diagnosticEmitter.emitAddressExclusivityHazardDiagnostic(
20592059
markedValue, consumingUse->getUser());

0 commit comments

Comments
 (0)