aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
diff options
context:
space:
mode:
authorSam McCall <sam.mccall@gmail.com>2020-09-24 14:26:11 +0200
committerSam McCall <sam.mccall@gmail.com>2020-09-24 22:49:44 +0200
commit1ad94624f8a092fbfcb74685e11243c186b04c8f (patch)
treea813b858596cbf04f6b7b59a60dfd341506125fa /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
parent4b8cb665a13b1eef4df3e09080098b5f8f520016 (diff)
downloadllvm-1ad94624f8a092fbfcb74685e11243c186b04c8f.zip
llvm-1ad94624f8a092fbfcb74685e11243c186b04c8f.tar.gz
llvm-1ad94624f8a092fbfcb74685e11243c186b04c8f.tar.bz2
[AST] Use data-recursion when building ParentMap, avoid stack overflow.
The following crashes on my system before this patch, but not after: void foo(int i) { switch (i) { case 1: case 2: ... 100000 cases ... ; } } clang-query -c="match stmt(hasAncestor(stmt()))" deep.c I'm not sure it's actually a sane testcase to run though, it's pretty slow :-) Differential Revision: https://reviews.llvm.org/D88222
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
0 files changed, 0 insertions, 0 deletions