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.
2 parents 724e7c0 + 545441e commit 02e1c93Copy full SHA for 02e1c93
include/swift/RemoteInspection/ReflectionContext.h
@@ -1989,6 +1989,9 @@ class ReflectionContext
1989
/// \param Builder Used to obtain offsets of elements known so far.
1990
bool isMetadataSourceReady(const MetadataSource *MS,
1991
const RecordTypeInfoBuilder &Builder) {
1992
+ if (!MS)
1993
+ return false;
1994
+
1995
switch (MS->getKind()) {
1996
case MetadataSourceKind::ClosureBinding:
1997
return true;
0 commit comments