diff options
author | Peixin Qiao <qiaopeixin@huawei.com> | 2022-10-17 19:46:18 +0800 |
---|---|---|
committer | Peixin Qiao <qiaopeixin@huawei.com> | 2022-10-17 19:46:18 +0800 |
commit | 240b85b1a8540f1ac000dda9042ac2fbccd9bc69 (patch) | |
tree | ae8695826e5544d7fa65d3ec5b9764b8d8355fb7 /clang/lib/Basic/Module.cpp | |
parent | 233659c7ae9b83b64a9f739d340736bca39c3d2e (diff) | |
download | llvm-240b85b1a8540f1ac000dda9042ac2fbccd9bc69.zip llvm-240b85b1a8540f1ac000dda9042ac2fbccd9bc69.tar.gz llvm-240b85b1a8540f1ac000dda9042ac2fbccd9bc69.tar.bz2 |
[flang][OpenMP] Fix the use-associated bug in threadprivate directive lowering
The symbol may be used by use-association for multiple times such
as one in module specification part and one in module procedure.
Then in module procedure, the variable instantiation will be called
for multiple times. But we only need to threadprivatize it once and
use the threadprivatized value for the second time.
Fix #58379.
Reviewed By: kiranchandramohan
Differential Revision: https://reviews.llvm.org/D136035
Diffstat (limited to 'clang/lib/Basic/Module.cpp')
0 files changed, 0 insertions, 0 deletions