diff options
author | Kaviya Rajendiran <67495422+kaviya2510@users.noreply.github.com> | 2025-01-23 11:14:00 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-23 11:14:00 +0530 |
commit | daa18205c6f0a3b5dd62ba2e65948e1a9182a60f (patch) | |
tree | 6e486c0bac19f1b237dc917afa367d0be78a835b /llvm/tools/llvm-objdump/llvm-objdump.cpp | |
parent | 646f034e4e228f9d5d6a0142210e5e28f2ea7872 (diff) | |
download | llvm-daa18205c6f0a3b5dd62ba2e65948e1a9182a60f.zip llvm-daa18205c6f0a3b5dd62ba2e65948e1a9182a60f.tar.gz llvm-daa18205c6f0a3b5dd62ba2e65948e1a9182a60f.tar.bz2 |
[Flang][OpenMP] Fix copyin allocatable lowering to MLIR (#122097)
Fixes https://github.com/llvm/llvm-project/issues/113191
Issue: [flang][OpenMP] Runtime segfault when an allocatable variable is
used with copyin
Rootcause: The value of the threadprivate variable is not being copied
from the primary thread to the other threads within a parallel region.
As a result it tries to access a null pointer inside a parallel region
which causes segfault.
Fix: When allocatables used with copyin clause need to ensure that, on
entry to any parallel region each thread’s copy of a variable will
acquire the allocation status of the primary thread, before copying the
value of a threadprivate variable of the primary thread to the
threadprivate variable of each other member of the team.
Diffstat (limited to 'llvm/tools/llvm-objdump/llvm-objdump.cpp')
0 files changed, 0 insertions, 0 deletions