Skip to content

Commit 16918e7

Browse files
committed
[RemoteMirrors] Restore stripping signed pointer when iterating the
conformance cache 58df553 accidentally removed stripping this signed pointer.
1 parent b0f1283 commit 16918e7

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

include/swift/Remote/MetadataReader.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -622,8 +622,7 @@ class MetadataReader {
622622
return RemoteAddress();
623623

624624
auto classMeta = cast<TargetClassMetadata>(meta);
625-
return stripSignedPointer(RemoteAddress(
626-
classMeta->Superclass.SignedValue, RemoteAddress::DefaultAddressSpace));
625+
return stripSignedPointer(classMeta->Superclass);
627626
}
628627

629628
/// Given a remote pointer to class metadata, attempt to discover its class

include/swift/RemoteInspection/ReflectionContext.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1386,8 +1386,7 @@ class ReflectionContext
13861386
for (StoredSize i = 0; i < Count; i++) {
13871387
auto &Element = ElementsData[i];
13881388
Call(RemoteAddress(Element.Type, ConformancesPtr.getAddressSpace()),
1389-
RemoteAddress(Element.Proto.SignedValue,
1390-
ConformancesPtr.getAddressSpace()));
1389+
stripSignedPointer(Element.Proto));
13911390
}
13921391
}
13931392

0 commit comments

Comments
 (0)