Skip to content

Commit 508d776

Browse files
committed
Adjust the expression type checker timeout to 10 minutes.
The old threshold was sometimes being reached on an ASAN bot. Also fix a spot where I missed passing in the override value from the command-line. rdar://problem/32925008
1 parent 53f68d7 commit 508d776

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

lib/Frontend/Frontend.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,8 @@ void CompilerInstance::performSema() {
549549
performTypeChecking(*SF, PersistentState.getTopLevelContext(),
550550
TypeCheckOptions, /*curElem*/ 0,
551551
options.WarnLongFunctionBodies,
552-
options.WarnLongExpressionTypeChecking);
552+
options.WarnLongExpressionTypeChecking,
553+
options.SolverExpressionTimeThreshold);
553554

554555
// Even if there were no source files, we should still record known
555556
// protocols.

lib/Sema/TypeChecker.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -837,7 +837,7 @@ class TypeChecker final : public LazyResolver {
837837

838838
/// If non-zero, abort the expression type checker if it takes more
839839
/// than this many seconds.
840-
unsigned ExpressionTimeoutThreshold = 60;
840+
unsigned ExpressionTimeoutThreshold = 600;
841841

842842
/// If true, the time it takes to type-check each function will be dumped
843843
/// to llvm::errs().

0 commit comments

Comments
 (0)