Skip to content

Commit 93b3ffb

Browse files
committed
[LexicalDestroyHoisting] Mark context const.
1 parent 9af40b3 commit 93b3ffb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/SILOptimizer/Utils/LexicalDestroyFolding.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ struct BorroweeUsage final {
290290
/// %lifetime. In detail, PrunedLiveness::isWithinBoundary relies on
291291
/// clients to know that instructions are after the start of liveness. We
292292
/// determine this via the dominance tree.
293-
bool findBorroweeUsage(Context &, BorroweeUsage &);
293+
bool findBorroweeUsage(Context const &, BorroweeUsage &);
294294

295295
/// Sift scope ends of %lifetime for those that CAN be folded.
296296
class FilterCandidates final {
@@ -616,7 +616,7 @@ bool FilterCandidates::run(Candidates &candidates) {
616616
return anyViable;
617617
}
618618

619-
bool findBorroweeUsage(Context &context, BorroweeUsage &usage) {
619+
bool findBorroweeUsage(Context const &context, BorroweeUsage &usage) {
620620
auto recordUse = [&](Operand *use) {
621621
// Ignore uses that aren't dominated by the introducer. PrunedLiveness
622622
// relies on us doing this check.

0 commit comments

Comments
 (0)