@@ -414,13 +414,13 @@ bool BorrowingOperand::visitBorrowIntroducingUserResults(
414
414
case BorrowingOperandKind::Yield:
415
415
llvm_unreachable (" Never has borrow introducer results!" );
416
416
case BorrowingOperandKind::BeginBorrow: {
417
- auto value = BorrowedValue::get (cast<BeginBorrowInst>(op->getUser ()));
417
+ auto value = BorrowedValue (cast<BeginBorrowInst>(op->getUser ()));
418
418
assert (value);
419
419
return visitor (value);
420
420
}
421
421
case BorrowingOperandKind::Branch: {
422
422
auto *bi = cast<BranchInst>(op->getUser ());
423
- auto value = BorrowedValue::get (
423
+ auto value = BorrowedValue (
424
424
bi->getDestBB ()->getArgument (op->getOperandNumber ()));
425
425
assert (value && " guaranteed-to-unowned conversion not allowed on branches" );
426
426
return visitor (value);
@@ -820,7 +820,7 @@ bool swift::getAllBorrowIntroducingValues(SILValue inputValue,
820
820
SILValue value = worklist.pop_back_val ();
821
821
822
822
// First check if v is an introducer. If so, stash it and continue.
823
- if (auto scopeIntroducer = BorrowedValue::get (value)) {
823
+ if (auto scopeIntroducer = BorrowedValue (value)) {
824
824
out.push_back (scopeIntroducer);
825
825
continue ;
826
826
}
@@ -868,7 +868,7 @@ BorrowedValue swift::getSingleBorrowIntroducingValue(SILValue inputValue) {
868
868
while (true ) {
869
869
// First check if our initial value is an introducer. If we have one, just
870
870
// return it.
871
- if (auto scopeIntroducer = BorrowedValue::get (currentValue)) {
871
+ if (auto scopeIntroducer = BorrowedValue (currentValue)) {
872
872
return scopeIntroducer;
873
873
}
874
874
0 commit comments