Skip to content

Commit 196a4d2

Browse files
committed
SwiftOnoneSupport creates different specializations with opened existentials
Implicitly disable implicit opening of existentials for SwiftOnoneSupport because it generates different specializations.
1 parent 9a7b9c6 commit 196a4d2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/Frontend/CompilerInvocation.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -451,6 +451,11 @@ static bool ParseLangArgs(LangOptions &Opts, ArgList &Args,
451451
Opts.EnableOpenedExistentialTypes |=
452452
Args.hasArg(OPT_enable_experimental_opened_existential_types);
453453

454+
// SwiftOnoneSupport produces different symbols when opening existentials,
455+
// so disable it.
456+
if (FrontendOpts.ModuleName == SWIFT_ONONE_SUPPORT)
457+
Opts.EnableOpenedExistentialTypes = false;
458+
454459
Opts.EnableExperimentalDistributed |=
455460
Args.hasArg(OPT_enable_experimental_distributed);
456461

0 commit comments

Comments
 (0)