Skip to content

Commit 0fceb33

Browse files
committed
[SIL] NFC: Marked function const.
Make it available on const instances.
1 parent 153c9d2 commit 0fceb33

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/swift/SIL/OwnershipUtils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ struct BorrowingOperand {
473473

474474
/// If this operand's user has a single borrowed value result return a
475475
/// valid BorrowedValue instance.
476-
BorrowedValue getBorrowIntroducingUserResult();
476+
BorrowedValue getBorrowIntroducingUserResult() const;
477477

478478
/// Compute the implicit uses that this borrowing operand "injects" into the
479479
/// set of its operands uses.

lib/SIL/Utils/OwnershipUtils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -729,7 +729,7 @@ bool BorrowingOperand::visitBorrowIntroducingUserResults(
729729
llvm_unreachable("Covered switch isn't covered?!");
730730
}
731731

732-
BorrowedValue BorrowingOperand::getBorrowIntroducingUserResult() {
732+
BorrowedValue BorrowingOperand::getBorrowIntroducingUserResult() const {
733733
switch (kind) {
734734
case BorrowingOperandKind::Invalid:
735735
case BorrowingOperandKind::Apply:

0 commit comments

Comments
 (0)