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 aeb7056 commit 5f00437Copy full SHA for 5f00437
stdlib/public/runtime/ProtocolConformance.cpp
@@ -586,7 +586,10 @@ namespace {
586
if (auto proto = ProtoOrStorage.dyn_cast<const ProtocolDescriptor *>())
587
return proto;
588
589
- return ProtoOrStorage.get<const ExtendedStorage *>()->Proto;
+ if (auto storage = ProtoOrStorage.dyn_cast<const ExtendedStorage *>())
590
+ return storage->Proto;
591
+
592
+ return nullptr;
593
}
594
595
/// Get the conformance cache key.
0 commit comments