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.
2 parents a1e4680 + 04bfa6d commit 25b4dd8Copy full SHA for 25b4dd8
lib/IRGen/GenReflection.cpp
@@ -180,7 +180,7 @@ class ReflectionMetadataBuilder : public ConstantBuilder<> {
180
// Collect any builtin types referenced from this type.
181
void addBuiltinTypeRefs(CanType type) {
182
type.visit([&](Type t) {
183
- if (t->is<BuiltinType>())
+ if (IGM.getSwiftModule()->isStdlibModule() && t->is<BuiltinType>())
184
IGM.BuiltinTypes.insert(CanType(t));
185
186
// We need size/alignment information for imported value types,
0 commit comments