aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/Function.cpp
diff options
context:
space:
mode:
authorShilei Tian <i@tianshilei.me>2023-08-31 21:15:21 -0400
committerShilei Tian <i@tianshilei.me>2023-08-31 21:15:28 -0400
commit35fdf8d70329b2b067cb9433a5891f2a57e2f4ed (patch)
tree07cbe9ba8f23f6ed9784d51dc8e9c8df5f991d7b /llvm/lib/IR/Function.cpp
parentef8121b109ef0be9fe94289acbfb9736d66cff15 (diff)
downloadllvm-35fdf8d70329b2b067cb9433a5891f2a57e2f4ed.zip
llvm-35fdf8d70329b2b067cb9433a5891f2a57e2f4ed.tar.gz
llvm-35fdf8d70329b2b067cb9433a5891f2a57e2f4ed.tar.bz2
[OpenMP] Fix a segment fault in __kmp_get_global_thread_id
In `__kmp_get_global_thread_id`, if the gtid mode is 1, after getting the gtid from TLS, it will store the gtid value to the thread stack maintained in the thread descriptor. However, `__kmp_get_global_thread_id` can be called when the library is destructed, after the corresponding thread info has been release. This will cause a segment fault. This can happen on an Intel-based Mac. Reviewed By: jdoerfert Differential Revision: https://reviews.llvm.org/D159324
Diffstat (limited to 'llvm/lib/IR/Function.cpp')
0 files changed, 0 insertions, 0 deletions