mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
IRGen/Runtime: Add a "primary generic parameters" count to generic parameter descriptors.
lldb needs this to be able to tell how many generic parameters are actually needed to instantiate a generic type. Fixes <rdar://problem/17425286>. Swift SVN r19573
This commit is contained in:
@@ -902,6 +902,8 @@ namespace {
|
||||
// vector.
|
||||
addConstantInt32(0);
|
||||
addConstantInt32(0);
|
||||
addConstantInt32(0);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -920,6 +922,9 @@ namespace {
|
||||
|
||||
// uint32_t NumGenericParameters;
|
||||
addConstantInt32(allArchetypes.size());
|
||||
|
||||
// uint32_t NumPrimaryGenericParameters;
|
||||
addConstantInt32(ntd->getGenericParams()->getPrimaryArchetypes().size());
|
||||
|
||||
// GenericParameter Parameters[NumGenericParameters];
|
||||
// struct GenericParameter {
|
||||
|
||||
Reference in New Issue
Block a user