Skip to content

Commit bfd78f0

Browse files
authored
Merge pull request swiftlang#5503 from slavapestov/fix-builtin-reflection-metadata
2 parents 0bb1fc3 + 94f0ffd commit bfd78f0

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)