Skip to content

Commit 7afab47

Browse files
committed
Runtime: Fix swift_getAssociatedTypeWitnessRelativeSlowImpl for MetadataOrPack change
1 parent 89083ee commit 7afab47

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

stdlib/public/runtime/Metadata.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6264,7 +6264,8 @@ swift_getAssociatedTypeWitnessRelativeSlowImpl(
62646264
auto result = swift_getTypeByMangledName(
62656265
request, mangledName, substitutions.getGenericArgs(),
62666266
[&substitutions](unsigned depth, unsigned index) {
6267-
return substitutions.getMetadata(depth, index);
6267+
// FIXME: Variadic generics
6268+
return substitutions.getMetadata(depth, index).getMetadata();
62686269
},
62696270
[&substitutions](const Metadata *type, unsigned index) {
62706271
return substitutions.getWitnessTable(type, index);

0 commit comments

Comments
 (0)