Skip to content

Commit dcde328

Browse files
committed
[Gardening] MoveOnly: Move and add comment.
1 parent bb67d1e commit dcde328

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/SILOptimizer/Mandatory/ConsumeOperatorCopyableAddressesChecker.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1340,10 +1340,8 @@ bool GatherLexicalLifetimeUseVisitor::visitUse(Operand *op,
13401340
return true;
13411341
}
13421342

1343-
// Then see if we have a inout_aliasable full apply site use. In that case, we
1344-
// are going to try and extend move checking into the partial apply using
1345-
// cloning to eliminate destroys or reinits.
13461343
if (auto fas = FullApplySite::isa(op->getUser())) {
1344+
// Bail on apply uses of fields.
13471345
if (stripAccessMarkers(op->get()) != useState.address) {
13481346
LLVM_DEBUG(
13491347
llvm::dbgs()
@@ -1352,6 +1350,9 @@ bool GatherLexicalLifetimeUseVisitor::visitUse(Operand *op,
13521350
return false;
13531351
}
13541352

1353+
// Then see if we have an inout_aliasable full apply site use. In that case,
1354+
// we are going to try and extend move checking into the partial apply
1355+
// using cloning to eliminate destroys or reinits.
13551356
if (fas.getCaptureConvention(*op) ==
13561357
SILArgumentConvention::Indirect_InoutAliasable) {
13571358
// If we don't find the function, we can't handle this, so bail.

0 commit comments

Comments
 (0)