Skip to content

Commit 445824d

Browse files
committed
Don't emit builtin metadata in the stdlib if it's generic
1 parent 2823d30 commit 445824d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/IRGen/GenReflection.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1163,6 +1163,11 @@ class FixedTypeMetadataBuilder : public ReflectionMetadataBuilder {
11631163
};
11641164

11651165
void IRGenModule::emitBuiltinTypeMetadataRecord(CanType builtinType) {
1166+
// If this builtin is generic, don't emit anything.
1167+
if (builtinType->hasTypeParameter()) {
1168+
return;
1169+
}
1170+
11661171
FixedTypeMetadataBuilder builder(*this, builtinType);
11671172
builder.emit();
11681173
}

0 commit comments

Comments
 (0)