@@ -6687,23 +6687,20 @@ class SelectEnumInstBase : public BaseTy {
66876687class SelectEnumInst final
66886688 : public InstructionBaseWithTrailingOperands<
66896689 SILInstructionKind::SelectEnumInst, SelectEnumInst,
6690- SelectEnumInstBase<SelectEnumInst,
6691- OwnershipForwardingSingleValueInstruction>,
6690+ SelectEnumInstBase<SelectEnumInst, SingleValueInstruction>,
66926691 EnumElementDecl *> {
66936692 friend SILBuilder;
6694- friend SelectEnumInstBase<SelectEnumInst,
6695- OwnershipForwardingSingleValueInstruction>;
6693+ friend SelectEnumInstBase<SelectEnumInst, SingleValueInstruction>;
66966694
66976695public:
66986696 SelectEnumInst (SILDebugLocation DebugLoc, SILValue Operand, SILType Type,
66996697 bool DefaultValue, ArrayRef<SILValue> CaseValues,
67006698 ArrayRef<EnumElementDecl *> CaseDecls,
67016699 llvm::Optional<ArrayRef<ProfileCounter>> CaseCounts,
6702- ProfileCounter DefaultCount,
6703- ValueOwnershipKind forwardingOwnershipKind)
6700+ ProfileCounter DefaultCount)
67046701 : InstructionBaseWithTrailingOperands(
67056702 Operand, CaseValues, DebugLoc, Type, bool (DefaultValue), CaseCounts,
6706- DefaultCount, forwardingOwnershipKind ) {
6703+ DefaultCount) {
67076704 assert (CaseValues.size () - DefaultValue == CaseDecls.size ());
67086705 std::uninitialized_copy (CaseDecls.begin (), CaseDecls.end (),
67096706 getTrailingObjects<EnumElementDecl *>());
@@ -6713,8 +6710,7 @@ class SelectEnumInst final
67136710 SILValue DefaultValue,
67146711 ArrayRef<std::pair<EnumElementDecl *, SILValue>> CaseValues,
67156712 SILModule &M, llvm::Optional<ArrayRef<ProfileCounter>> CaseCounts,
6716- ProfileCounter DefaultCount,
6717- ValueOwnershipKind forwardingOwnershipKind);
6713+ ProfileCounter DefaultCount);
67186714};
67196715
67206716// / Select one of a set of values based on the case of an enum.
@@ -10654,7 +10650,6 @@ OwnershipForwardingSingleValueInstruction::classof(SILInstructionKind kind) {
1065410650 case SILInstructionKind::BridgeObjectToRefInst:
1065510651 case SILInstructionKind::ThinToThickFunctionInst:
1065610652 case SILInstructionKind::UnconditionalCheckedCastInst:
10657- case SILInstructionKind::SelectEnumInst:
1065810653 return true ;
1065910654 default :
1066010655 return false ;
0 commit comments