[OpenMP] Fixed a segmentation fault when using taskloop and target nowait
authorShilei Tian <tianshilei1992@gmail.com>
Tue, 20 Jul 2021 01:08:40 +0000 (21:08 -0400)
committerShilei Tian <tianshilei1992@gmail.com>
Tue, 20 Jul 2021 01:09:05 +0000 (21:09 -0400)
commit996baa58a440d3ef80c8e227d4fa3234da8215ed
tree08c42c4d13016d2aedf74af07e4f4d7bf93afc91
parentc9ec807b115d798c1ad1a002655c0c6f700ef021
[OpenMP] Fixed a segmentation fault when using taskloop and target nowait

The synchronization of task loop misses hidden helper tasks, causing segmentation
fault reported in https://bugs.llvm.org/show_bug.cgi?id=50002.

Reviewed By: ye-luo

Differential Revision: https://reviews.llvm.org/D106220
openmp/libomptarget/test/offloading/taskloop_offload_nowait.cpp [new file with mode: 0644]
openmp/runtime/src/kmp_tasking.cpp