diff options
| author | Sam McCall <sam.mccall@gmail.com> | 2020-09-24 14:26:11 +0200 |
|---|---|---|
| committer | Sam McCall <sam.mccall@gmail.com> | 2020-09-24 22:49:44 +0200 |
| commit | 1ad94624f8a092fbfcb74685e11243c186b04c8f (patch) | |
| tree | a813b858596cbf04f6b7b59a60dfd341506125fa /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp | |
| parent | 4b8cb665a13b1eef4df3e09080098b5f8f520016 (diff) | |
[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 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions
