mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
IRGen: Disable resilient class metadata unless -enable-class-resilience is passed in
Resilient classes are not fully implemented yet, and can cause crashes at runtime; add a flag disabling them until the code is done, to unblock standard library testing with resilience enabled.
This commit is contained in:
@@ -787,6 +787,9 @@ static bool ParseLangArgs(LangOptions &Opts, ArgList &Args,
|
||||
Opts.EnableExperimentalNestedGenericTypes |=
|
||||
Args.hasArg(OPT_enable_experimental_nested_generic_types);
|
||||
|
||||
Opts.EnableClassResilience |=
|
||||
Args.hasArg(OPT_enable_class_resilience);
|
||||
|
||||
Opts.DisableAvailabilityChecking |=
|
||||
Args.hasArg(OPT_disable_availability_checking);
|
||||
if (FrontendOpts.InputKind == InputFileKind::IFK_SIL)
|
||||
|
||||
Reference in New Issue
Block a user