Add experimental flag to turn on just opaque type erasure (#60172)

This was already enabled as part of `-enable-implicit-dynamic` but this
new flag allows turning on opaque type erasure all by itself whether or
not `dynamic` is added explicitly.

rdar://97375478
This commit is contained in:
Jonathan Penn
2022-07-22 23:43:22 -04:00
committed by GitHub
parent 539c670283
commit be5babf28c
7 changed files with 35 additions and 2 deletions

View File

@@ -678,6 +678,9 @@ static bool ParseLangArgs(LangOptions &Opts, ArgList &Args,
Opts.Features.insert(Feature::ForwardModeDifferentiation);
if (Args.hasArg(OPT_enable_experimental_additive_arithmetic_derivation))
Opts.Features.insert(Feature::AdditiveArithmeticDerivedConformances);
if (Args.hasArg(OPT_enable_experimental_opaque_type_erasure))
Opts.Features.insert(Feature::OpaqueTypeErasure);
Opts.EnableAppExtensionRestrictions |= Args.hasArg(OPT_enable_app_extension);