Remove redundant SILType::isMoveOnlyNominalType (NFC)

and implement `SILType::isPureMoveOnly` in terms of `Type::isPureMoveOnly`.
This commit is contained in:
Joe Groff
2023-08-01 13:55:53 -07:00
parent 76feb8cd95
commit 03eec7da2b
4 changed files with 17 additions and 21 deletions

View File

@@ -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 "