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 7219daf commit 389716aCopy full SHA for 389716a
lib/IRGen/GenRecord.h
@@ -564,9 +564,11 @@ class RecordTypeInfoImpl : public Base,
564
.collectMetadataForOutlining(collector, loweredLikeType);
565
566
if (auto countType = T.getRawLayoutSubstitutedCountType()) {
567
- auto loweredCountType = collector.IGF.IGM.getLoweredType(countType);
568
- collector.IGF.IGM.getTypeInfo(loweredCountType)
569
- .collectMetadataForOutlining(collector, loweredCountType);
+ if (countType->isValueParameter()) {
+ auto loweredCountType = collector.IGF.IGM.getLoweredType(countType);
+ collector.IGF.IGM.getTypeInfo(loweredCountType)
570
+ .collectMetadataForOutlining(collector, loweredCountType);
571
+ }
572
}
573
574
0 commit comments