[Sema] refactor TypeDecl::isNoncopyable

In preparation for reporting whether the inverse marking on a TypeDecl
was inferred instead of explicit.
This commit is contained in:
Kavon Farvardin
2023-10-29 15:06:08 -07:00
parent 455fcdc5e0
commit a9c64baaa3
27 changed files with 96 additions and 72 deletions

View File

@@ -680,7 +680,7 @@ lookUpFunctionInVTable(ClassDecl *Class, SILDeclRef Member) {
SILFunction *
SILModule::lookUpMoveOnlyDeinitFunction(const NominalTypeDecl *nomDecl) {
assert(nomDecl->isNoncopyable());
assert(nomDecl->canBeNoncopyable());
auto *tbl = lookUpMoveOnlyDeinit(nomDecl);