commit | d66bf94f527c6bd24089615ee3a0b74a2ec35310 | [log] [tgz] |
---|---|---|
author | Rafael Espindola <rafael.espindola@gmail.com> | Thu Jul 25 02:11:20 2013 +0000 |
committer | Rafael Espindola <rafael.espindola@gmail.com> | Thu Jul 25 02:11:20 2013 +0000 |
tree | 6f45cec794dcb525616f98b10ff156f23b7907fa | |
parent | f221d161ae559ca0395fa5920c36c4c4a688e380 [diff] |
Avoid recursions when the parser finds out that it has too many brackets. BalancedDelimiterTracker::diagnoseOverflow calls P.SkipUntil, and before this patch P.SkipUnti is recursive, causing problems on systems with small stacks. This patch fixes it by making P.SkipUnti non recursive when just looking for eof. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@187097 91177308-0d34-0410-b5e6-96231b3b80d8