File tree Expand file tree Collapse file tree 2 files changed +1
-16
lines changed
lib/SILOptimizer/Mandatory Expand file tree Collapse file tree 2 files changed +1
-16
lines changed Original file line number Diff line number Diff line change @@ -667,21 +667,6 @@ class SILValue {
667
667
return Value->getDefiningInstruction ();
668
668
}
669
669
670
- // / Returns the ValueOwnershipKind that describes this SILValue's ownership
671
- // / semantics if the SILValue has ownership semantics. Returns is a value
672
- // / without any Ownership Semantics.
673
- // /
674
- // / An example of a SILValue without ownership semantics is a
675
- // / struct_element_addr.
676
- // /
677
- // / NOTE: This is implemented in ValueOwnership.cpp not SILValue.cpp.
678
- // /
679
- // / FIXME: remove this redundant API from SILValue.
680
- [[deprecated(" Please use ValueBase::getOwnershipKind()" )]] ValueOwnershipKind
681
- getOwnershipKind () const {
682
- return Value->getOwnershipKind ();
683
- };
684
-
685
670
// / Verify that this SILValue and its uses respects ownership invariants.
686
671
void verifyOwnership (DeadEndBlocks *DEBlocks) const ;
687
672
Original file line number Diff line number Diff line change @@ -963,7 +963,7 @@ static bool doesNotNeedStackAllocation(SILValue value) {
963
963
// necessary to introduce new storage and move to it.
964
964
if (isa<LoadBorrowInst>(defInst) ||
965
965
(isa<BeginApplyInst>(defInst) &&
966
- value. getOwnershipKind () == OwnershipKind::Guaranteed))
966
+ value-> getOwnershipKind () == OwnershipKind::Guaranteed))
967
967
return true ;
968
968
969
969
return false ;
You can’t perform that action at this time.
0 commit comments