Skip to content

Commit 25b4dd8

Browse files
author
ematejska
authored
Merge pull request #5562 from slavapestov/fix-builtin-reflection-metadata-3.0
IRGen: Don't emit reflection metadata for builtin types unless we're … [3.0]
2 parents a1e4680 + 04bfa6d commit 25b4dd8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/IRGen/GenReflection.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ class ReflectionMetadataBuilder : public ConstantBuilder<> {
180180
// Collect any builtin types referenced from this type.
181181
void addBuiltinTypeRefs(CanType type) {
182182
type.visit([&](Type t) {
183-
if (t->is<BuiltinType>())
183+
if (IGM.getSwiftModule()->isStdlibModule() && t->is<BuiltinType>())
184184
IGM.BuiltinTypes.insert(CanType(t));
185185

186186
// We need size/alignment information for imported value types,

0 commit comments

Comments
 (0)