aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/SystemUtils.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard@metafoo.co.uk>2020-07-08 13:04:37 -0700
committerRichard Smith <richard@metafoo.co.uk>2020-07-08 13:08:38 -0700
commit4544c2d95ad0217e1f28ddd84253cd09a91148c0 (patch)
tree9381c689b52aaeeb695fb0cffa2f5ee3b46cf588 /llvm/lib/Support/SystemUtils.cpp
parent9b1e95329af7bb005275f18225b2c130ec3ea98d (diff)
downloadllvm-4544c2d95ad0217e1f28ddd84253cd09a91148c0.zip
llvm-4544c2d95ad0217e1f28ddd84253cd09a91148c0.tar.gz
llvm-4544c2d95ad0217e1f28ddd84253cd09a91148c0.tar.bz2
Recover more gracefully from stack exhaustion during template argument
deduction. Template argument deduction can trigger substitution, both with explicitly-specified template arguments and with deduced template arguments in various ways. We previously had no check for stack exhaustion along some of those codepaths, making it fairly easy to crash clang with a template resulting in a substitution that referred back to that same template. We should now produce a proper diagnostic for such cases rather than crashing.
Diffstat (limited to 'llvm/lib/Support/SystemUtils.cpp')
0 files changed, 0 insertions, 0 deletions