File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
include/swift/RemoteInspection Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -1276,7 +1276,9 @@ class ReflectionContext
1276
1276
// / the superclass's fields. For a version of this function that performs the
1277
1277
// / same job but starting out with an instance pointer check
1278
1278
// / MetadataReader::readInstanceStartFromClassMetadata.
1279
- std::optional<unsigned > computeUnalignedFieldStartOffset (const TypeRef *TR) {
1279
+ std::optional<unsigned >
1280
+ computeUnalignedFieldStartOffset (const TypeRef *TR,
1281
+ remote::TypeInfoProvider *ExternalTypeInfo) {
1280
1282
size_t isaAndRetainCountSize = sizeof (StoredSize) + sizeof (long long );
1281
1283
1282
1284
const TypeRef *superclass = getBuilder ().lookupSuperclass (TR);
@@ -1286,12 +1288,12 @@ class ReflectionContext
1286
1288
return isaAndRetainCountSize;
1287
1289
1288
1290
auto superclassStart =
1289
- computeUnalignedFieldStartOffset (superclass);
1291
+ computeUnalignedFieldStartOffset (superclass, ExternalTypeInfo );
1290
1292
if (!superclassStart)
1291
1293
return std::nullopt;
1292
1294
1293
1295
auto *superTI = getBuilder ().getTypeConverter ().getClassInstanceTypeInfo (
1294
- superclass, *superclassStart, nullptr );
1296
+ superclass, *superclassStart, ExternalTypeInfo );
1295
1297
if (!superTI)
1296
1298
return std::nullopt;
1297
1299
You can’t perform that action at this time.
0 commit comments