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 7bcbd23 + 5a6b589 commit caf0a13Copy full SHA for caf0a13
lib/SIL/IR/SILFunctionBuilder.cpp
@@ -270,7 +270,11 @@ SILFunction *SILFunctionBuilder::getOrCreateFunction(
270
271
IsTransparent_t IsTrans =
272
constant.isTransparent() ? IsTransparent : IsNotTransparent;
273
+
274
IsSerialized_t IsSer = constant.isSerialized();
275
+ // Don't create a [serialized] function after serialization has happened.
276
+ if (IsSer == IsSerialized && mod.isSerialized())
277
+ IsSer = IsNotSerialized;
278
279
Inline_t inlineStrategy = InlineDefault;
280
if (constant.isNoinline())
0 commit comments