mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[NFC] replace canBeNoncopyable
First, "can have an absence of Copyable" is a rather confusing notion, so the query is flipped to "can be Copyable". Next, it's more robust to ask if a conformance exists for the TypeDecl to answer that question, rather than trying to replicate what happens within that conformance lookup. Also renames `TypeDecl::isEscapable` to match.
This commit is contained in:
@@ -680,7 +680,7 @@ lookUpFunctionInVTable(ClassDecl *Class, SILDeclRef Member) {
|
||||
|
||||
SILFunction *
|
||||
SILModule::lookUpMoveOnlyDeinitFunction(const NominalTypeDecl *nomDecl) {
|
||||
assert(nomDecl->canBeNoncopyable());
|
||||
assert(!nomDecl->canBeCopyable());
|
||||
|
||||
auto *tbl = lookUpMoveOnlyDeinit(nomDecl);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user