[Parser] Enable new parser validation only in 'assertions' builds

This commit is contained in:
Rintaro Ishizaki
2024-10-14 09:00:48 -07:00
parent 3bc20a9596
commit 4616c77a33

View File

@@ -1691,7 +1691,7 @@ static bool ParseLangArgs(LangOptions &Opts, ArgList &Args,
Opts.DisableDynamicActorIsolation |=
Args.hasArg(OPT_disable_dynamic_actor_isolation);
#if SWIFT_ENABLE_EXPERIMENTAL_PARSER_VALIDATION
#if !defined(NDEBUG) && SWIFT_ENABLE_EXPERIMENTAL_PARSER_VALIDATION
/// Enable round trip parsing via the new swift parser unless it is disabled
/// explicitly. The new Swift parser can have mismatches with C++ parser -
/// rdar://118013482 Use this flag to disable round trip through the new