mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Update determination of "too complex" expression to take time into account.
By default, end expression type checking after the elapsed process time is more than 60 seconds for the current expression. This threshold can be overridden by using -solver-expression-time-threshold=<seconds>. Resolves rdar://problem/32859654
This commit is contained in:
@@ -519,7 +519,8 @@ void CompilerInstance::performSema() {
|
||||
performTypeChecking(MainFile, PersistentState.getTopLevelContext(),
|
||||
TypeCheckOptions, CurTUElem,
|
||||
options.WarnLongFunctionBodies,
|
||||
options.WarnLongExpressionTypeChecking);
|
||||
options.WarnLongExpressionTypeChecking,
|
||||
options.SolverExpressionTimeThreshold);
|
||||
}
|
||||
CurTUElem = MainFile.Decls.size();
|
||||
} while (!Done);
|
||||
|
||||
Reference in New Issue
Block a user