Skip to content

Commit d80ad91

Browse files
committed
AST: Tweak substitution limits again
Fixes rdar://158608098.
1 parent 36c49ea commit d80ad91

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/swift/Basic/LangOptions.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -615,11 +615,11 @@ namespace swift {
615615

616616
/// Maximum nesting depth for type substitution operations, to prevent
617617
/// runaway recursion.
618-
unsigned MaxSubstitutionDepth = 1000;
618+
unsigned MaxSubstitutionDepth = 500;
619619

620620
/// Maximum step count for type substitution operations, to prevent
621621
/// runaway recursion.
622-
unsigned MaxSubstitutionCount = 32000;
622+
unsigned MaxSubstitutionCount = 120000;
623623

624624
/// Enable implicit lifetime dependence for ~Escapable return types.
625625
bool EnableExperimentalLifetimeDependenceInference = false;

0 commit comments

Comments
 (0)