Skip to content

Commit 4616c77

Browse files
committed
[Parser] Enable new parser validation only in 'assertions' builds
1 parent 3bc20a9 commit 4616c77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Frontend/CompilerInvocation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1691,7 +1691,7 @@ static bool ParseLangArgs(LangOptions &Opts, ArgList &Args,
16911691
Opts.DisableDynamicActorIsolation |=
16921692
Args.hasArg(OPT_disable_dynamic_actor_isolation);
16931693

1694-
#if SWIFT_ENABLE_EXPERIMENTAL_PARSER_VALIDATION
1694+
#if !defined(NDEBUG) && SWIFT_ENABLE_EXPERIMENTAL_PARSER_VALIDATION
16951695
/// Enable round trip parsing via the new swift parser unless it is disabled
16961696
/// explicitly. The new Swift parser can have mismatches with C++ parser -
16971697
/// rdar://118013482 Use this flag to disable round trip through the new

0 commit comments

Comments
 (0)