We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8cd7ef commit 287ee75Copy full SHA for 287ee75
lib/Sema/TypeCheckBitwise.cpp
@@ -219,10 +219,8 @@ void BitwiseCopyableStorageVisitor::emitNonconformingMemberTypeDiagnostic(
219
static bool checkBitwiseCopyableInstanceStorage(NominalTypeDecl *nominal,
220
DeclContext *dc,
221
BitwiseCopyableCheck check) {
222
- // If the BitwiseCopyable protocol doesn't exist, there's nothing to do.
223
- if (!dc->getParentModule()->getASTContext().getProtocol(
224
- KnownProtocolKind::BitwiseCopyable))
225
- return false;
+ assert(dc->getParentModule()->getASTContext().getProtocol(
+ KnownProtocolKind::BitwiseCopyable));
226
227
if (isa<ClassDecl>(nominal)) {
228
if (!isImplicit(check)) {
0 commit comments