aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/TestModuleFileExtension.cpp
diff options
context:
space:
mode:
authorKrzysztof Parzyszek <Krzysztof.Parzyszek@amd.com>2025-07-25 08:42:23 -0500
committerGitHub <noreply@github.com>2025-07-25 08:42:23 -0500
commit6b92a3bc21cdcdeb161a06524a9860551831c67e (patch)
tree82f6d2680b1f3274553431e0f46fbf8a71ec48bd /clang/lib/Frontend/TestModuleFileExtension.cpp
parentb75530ff034a131da8ca1f05a00f3655c13839ff (diff)
downloadllvm-6b92a3bc21cdcdeb161a06524a9860551831c67e.zip
llvm-6b92a3bc21cdcdeb161a06524a9860551831c67e.tar.gz
llvm-6b92a3bc21cdcdeb161a06524a9860551831c67e.tar.bz2
[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 'clang/lib/Frontend/TestModuleFileExtension.cpp')
0 files changed, 0 insertions, 0 deletions