swift
73232632 - AST: avoid unnecessarily calling getStartLoc() to avoid exponential growth of the stack trace

Commit
6 years ago
AST: avoid unnecessarily calling getStartLoc() to avoid exponential growth of the stack trace Issuing multiple getStartLoc() from sub-expression can exponentially grow the stack trace. When the expression under analysis is complex enough, this could be a user-noticeable hang. This patch fixes UnresolvedDotExpr::getStartLoc() by 'refactoring' the result of SubExpr->getStartLoc() to a local variable. rdar://52982457
Author
Committer
Parents
Loading