We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0c8465 commit 3503ab3Copy full SHA for 3503ab3
stdlib/public/runtime/Demangle.cpp
@@ -343,7 +343,10 @@ static bool _buildDemanglingForGenericArgs(
343
auto packDescriptor = packDescriptors[packIndex];
344
assert(packDescriptor.Kind == GenericPackKind::Metadata);
345
assert(packDescriptor.ShapeClass < packHeader.NumShapeClasses);
346
- assert(packDescriptor.Index == argIndex);
+
347
+ // Arg index is not interested in the shape classes, but the pack
348
+ // descriptor's index is in terms of the shape classes.
349
+ assert(packDescriptor.Index == argIndex + packHeader.NumShapeClasses);
350
351
MetadataPackPointer pack(genericArg.getMetadataPack());
352
size_t count = reinterpret_cast<size_t>(genericArgs[packDescriptor.ShapeClass]);
0 commit comments