diff options
author | Richard Smith <richard@metafoo.co.uk> | 2020-07-08 13:04:37 -0700 |
---|---|---|
committer | Richard Smith <richard@metafoo.co.uk> | 2020-07-08 13:08:38 -0700 |
commit | 4544c2d95ad0217e1f28ddd84253cd09a91148c0 (patch) | |
tree | 9381c689b52aaeeb695fb0cffa2f5ee3b46cf588 /llvm/lib/Support/SystemUtils.cpp | |
parent | 9b1e95329af7bb005275f18225b2c130ec3ea98d (diff) | |
download | llvm-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