aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorjeanPerier <jperier@nvidia.com>2025-05-09 10:36:38 +0200
committerGitHub <noreply@github.com>2025-05-09 10:36:38 +0200
commit92d2e13b99ba1770e6307af7ed7ee877bfabde8c (patch)
tree82a3e302336a4efc8ef6173730d283dc658a66b6 /clang/lib/CodeGen/CodeGenModule.cpp
parent76b3adabea10f5224109138e890770f18edbff48 (diff)
downloadllvm-92d2e13b99ba1770e6307af7ed7ee877bfabde8c.zip
llvm-92d2e13b99ba1770e6307af7ed7ee877bfabde8c.tar.gz
llvm-92d2e13b99ba1770e6307af7ed7ee877bfabde8c.tar.bz2
[flang][driver] do not crash when fc1 process multiple files (#138875)
This is a fix for the issue https://github.com/llvm/llvm-project/issues/137126 that turned out to be a driver issue. FrontendActions has a loop to process multiple input files and `flang -fc1` accept multiple files, but the semantic, lowering, and llvm codegen actions were not re-entrant, and crash or weird behaviors occurred when processing multiple files with `-fc1`. This patch makes the actions reentrant by cleaning-up the contexts/modules if needed on entry.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions