Skip to content

Commit f676327

Browse files
committed
[move-only] Be careful and mark some cleanup as setting changed.
I am pretty sure this would never actually be an issue, but I am trying to just be careful and consistent.
1 parent c54acc8 commit f676327

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/SILOptimizer/Mandatory/MoveOnlyObjectChecker.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -507,6 +507,7 @@ bool MoveOnlyChecker::check(NonLocalAccessBlockAnalysis *accessBlockAnalysis,
507507
b.createExplicitCopyValue(cvi->getLoc(), cvi->getOperand());
508508
cvi->replaceAllUsesWith(expCopy);
509509
cvi->eraseFromParent();
510+
changed = true;
510511
}
511512
}
512513
}

0 commit comments

Comments
 (0)