@@ -1777,17 +1777,15 @@ SwitchValueInst *SwitchValueInst::create(
1777
1777
1778
1778
SelectValueInst::SelectValueInst (SILDebugLocation DebugLoc, SILValue Operand,
1779
1779
SILType Type, SILValue DefaultResult,
1780
- ArrayRef<SILValue> CaseValuesAndResults,
1781
- ValueOwnershipKind forwardingOwnership)
1780
+ ArrayRef<SILValue> CaseValuesAndResults)
1782
1781
: InstructionBaseWithTrailingOperands(Operand, CaseValuesAndResults,
1783
- DebugLoc, Type, forwardingOwnership) {
1784
- }
1782
+ DebugLoc, Type) {}
1785
1783
1786
1784
SelectValueInst *
1787
1785
SelectValueInst::create (SILDebugLocation Loc, SILValue Operand, SILType Type,
1788
1786
SILValue DefaultResult,
1789
1787
ArrayRef<std::pair<SILValue, SILValue>> CaseValues,
1790
- SILModule &M, ValueOwnershipKind forwardingOwnership ) {
1788
+ SILModule &M) {
1791
1789
// Allocate enough room for the instruction with tail-allocated data for all
1792
1790
// the case values and the SILSuccessor arrays. There are `CaseBBs.size()`
1793
1791
// SILValues and `CaseBBs.size() + (DefaultBB ? 1 : 0)` successors.
@@ -1802,8 +1800,8 @@ SelectValueInst::create(SILDebugLocation Loc, SILValue Operand, SILType Type,
1802
1800
1803
1801
auto Size = totalSizeToAlloc<swift::Operand>(CaseValuesAndResults.size () + 1 );
1804
1802
auto Buf = M.allocateInst (Size, alignof (SelectValueInst));
1805
- return ::new (Buf) SelectValueInst (Loc, Operand, Type, DefaultResult,
1806
- CaseValuesAndResults, forwardingOwnership );
1803
+ return ::new (Buf)
1804
+ SelectValueInst (Loc, Operand, Type, DefaultResult, CaseValuesAndResults );
1807
1805
}
1808
1806
1809
1807
template <typename SELECT_ENUM_INST>
0 commit comments