Skip to content

Commit 6f2c3f6

Browse files
authored
Merge pull request swiftlang#24131 from mikeash/readMetadataAndValueErrorExistential-null-check-5.1
2 parents f8e4f27 + bf75f38 commit 6f2c3f6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

include/swift/Remote/MetadataReader.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,9 @@ class MetadataReader {
362362
bool isBridged = false;
363363

364364
auto Meta = readMetadata(*MetadataAddress);
365+
if (!Meta)
366+
return None;
367+
365368
if (auto ClassMeta = dyn_cast<TargetClassMetadata<Runtime>>(Meta)) {
366369
if (ClassMeta->isPureObjC()) {
367370
// If we can determine the Objective-C class name, this is probably an

0 commit comments

Comments
 (0)