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 {
667667 return Value->getDefiningInstruction ();
668668 }
669669
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-
685670 // / Verify that this SILValue and its uses respects ownership invariants.
686671 void verifyOwnership (DeadEndBlocks *DEBlocks) const ;
687672
Original file line number Diff line number Diff line change @@ -963,7 +963,7 @@ static bool doesNotNeedStackAllocation(SILValue value) {
963963 // necessary to introduce new storage and move to it.
964964 if (isa<LoadBorrowInst>(defInst) ||
965965 (isa<BeginApplyInst>(defInst) &&
966- value. getOwnershipKind () == OwnershipKind::Guaranteed))
966+ value-> getOwnershipKind () == OwnershipKind::Guaranteed))
967967 return true ;
968968
969969 return false ;
You can’t perform that action at this time.
0 commit comments