@@ -1193,7 +1193,7 @@ class SubstGenericParametersFromWrittenArgs {
11931193 genericParamCounts(genericParamCounts) {}
11941194
11951195 MetadataOrPack getMetadata (unsigned depth, unsigned index) const ;
1196- MetadataOrPack getMetadataOrdinal (unsigned ordinal) const ;
1196+ MetadataOrPack getMetadataFullOrdinal (unsigned ordinal) const ;
11971197 const WitnessTable *getWitnessTable (const Metadata *type,
11981198 unsigned index) const ;
11991199};
@@ -1413,8 +1413,8 @@ _gatherGenericParameters(const ContextDescriptor *context,
14131413 [&substitutions](unsigned depth, unsigned index) {
14141414 return substitutions.getMetadata (depth, index).Ptr ;
14151415 },
1416- [&substitutions](unsigned ordinal ) {
1417- return substitutions.getMetadataOrdinal (ordinal ).Ptr ;
1416+ [&substitutions](unsigned fullOrdinal, unsigned keyOrdinal ) {
1417+ return substitutions.getMetadataFullOrdinal (fullOrdinal ).Ptr ;
14181418 },
14191419 [&substitutions](const Metadata *type, unsigned index) {
14201420 return substitutions.getWitnessTable (type, index);
@@ -1847,12 +1847,12 @@ class DecodedMetadataBuilder {
18471847 // FIXME: variadic generics
18481848 return genArgs[index].getMetadata ();
18491849 },
1850- [genArgs](unsigned ordinal ) {
1851- if (ordinal >= genArgs.size ())
1850+ [genArgs](unsigned fullOrdinal, unsigned keyOrdinal ) {
1851+ if (fullOrdinal >= genArgs.size ())
18521852 return (const Metadata*)nullptr ;
18531853
18541854 // FIXME: variadic generics
1855- return genArgs[ordinal ].getMetadata ();
1855+ return genArgs[fullOrdinal ].getMetadata ();
18561856 },
18571857 [](const Metadata *type, unsigned index) -> const WitnessTable * {
18581858 swift_unreachable (" never called" );
@@ -2810,8 +2810,8 @@ swift_distributed_getWitnessTables(GenericEnvironmentDescriptor *genericEnv,
28102810 [&substFn](unsigned depth, unsigned index) {
28112811 return substFn.getMetadata (depth, index).Ptr ;
28122812 },
2813- [&substFn](unsigned ordinal ) {
2814- return substFn.getMetadataOrdinal (ordinal ).Ptr ;
2813+ [&substFn](unsigned fullOrdinal, unsigned keyOrdinal ) {
2814+ return substFn.getMetadataKeyArgOrdinal (keyOrdinal ).Ptr ;
28152815 },
28162816 [&substFn](const Metadata *type, unsigned index) {
28172817 return substFn.getWitnessTable (type, index);
@@ -3239,8 +3239,8 @@ SubstGenericParametersFromMetadata::getMetadata(
32393239 return MetadataOrPack (genericArgs[flatIndex]);
32403240}
32413241
3242- MetadataOrPack
3243- SubstGenericParametersFromMetadata::getMetadataOrdinal ( unsigned ordinal) const {
3242+ MetadataOrPack SubstGenericParametersFromMetadata::getMetadataKeyArgOrdinal (
3243+ unsigned ordinal) const {
32443244 // Don't attempt anything if we have no generic parameters.
32453245 if (genericArgs == nullptr )
32463246 return MetadataOrPack ();
@@ -3277,8 +3277,8 @@ MetadataOrPack SubstGenericParametersFromWrittenArgs::getMetadata(
32773277 return MetadataOrPack ();
32783278}
32793279
3280- MetadataOrPack SubstGenericParametersFromWrittenArgs::getMetadataOrdinal (
3281- unsigned ordinal) const {
3280+ MetadataOrPack SubstGenericParametersFromWrittenArgs::getMetadataFullOrdinal (
3281+ unsigned ordinal) const {
32823282 if (ordinal < allGenericArgs.size ()) {
32833283 return MetadataOrPack (allGenericArgs[ordinal]);
32843284 }
0 commit comments