diff options
| author | Krzysztof Parzyszek <Krzysztof.Parzyszek@amd.com> | 2025-07-25 08:42:23 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-25 08:42:23 -0500 |
| commit | 6b92a3bc21cdcdeb161a06524a9860551831c67e (patch) | |
| tree | 82f6d2680b1f3274553431e0f46fbf8a71ec48bd /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp | |
| parent | b75530ff034a131da8ca1f05a00f3655c13839ff (diff) | |
[flang][OpenMP] Detect BLOCK construct through lookahead (#150617)
Avoid parsing the entire ExecutionPartConstruct in either the strictly-
or the loosely-structured block parser only to discard it when it's not
BLOCK (or is BLOCK) respectively. Doing so was not incorrct, but in
pathological cases (like Fujitsu 0981_0034) the recursive parsing can
take a very long time.
Instead, detect the presence of BLOCK first (via a simple lookahead),
and fail immediately if necessary.
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions
