mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Remove redundant SILType::isMoveOnlyNominalType (NFC)
and implement `SILType::isPureMoveOnly` in terms of `Type::isPureMoveOnly`.
This commit is contained in:
@@ -6016,7 +6016,7 @@ public:
|
||||
auto type = ddi->getType();
|
||||
require(type == ddi->getOperand()->getType(),
|
||||
"Result and operand must have the same type.");
|
||||
require(type.isMoveOnlyNominalType(),
|
||||
require(type.isPureMoveOnly(),
|
||||
"drop_deinit only allowed for move-only types");
|
||||
require(type.getNominalOrBoundGenericNominal()
|
||||
->getValueTypeDestructor(), "drop_deinit only allowed for "
|
||||
|
||||
Reference in New Issue
Block a user