OSDN Git Service

[OpenMP] libomp cleanup: add check of input global tid parameter
authorAndreyChurbanov <andrey.churbanov@intel.com>
Mon, 20 Jul 2020 20:49:58 +0000 (23:49 +0300)
committerAndreyChurbanov <andrey.churbanov@intel.com>
Mon, 20 Jul 2020 20:49:58 +0000 (23:49 +0300)
commit787eb0c637b26ce88e91403584b016a42ab5d59c
tree670aea8e166245aad3522591baef90a0e9eb5b06
parent3ff220de900970a20c9882b7199c178c6b6428b2
[OpenMP] libomp cleanup: add check of input global tid parameter

Add check of negative gtid before indexing __kmp_threads.
This makes static analyzers happier.
This is the first part of the patch split in two parts.

Differential Revision: https://reviews.llvm.org/D84062
openmp/runtime/src/kmp.h
openmp/runtime/src/kmp_csupport.cpp
openmp/runtime/src/kmp_dispatch.cpp
openmp/runtime/src/kmp_error.cpp
openmp/runtime/src/kmp_sched.cpp
openmp/runtime/src/kmp_taskdeps.cpp
openmp/runtime/src/kmp_tasking.cpp