diff options
author | Jennifer Yu <jennifer.yu@intel.com> | 2022-09-22 20:05:15 -0700 |
---|---|---|
committer | Jennifer Yu <jennifer.yu@intel.com> | 2022-09-27 11:53:57 -0700 |
commit | 30cc712eb6f23a5c7beaae669bf2ab6beede7f20 (patch) | |
tree | edc5369aed0a0f847c094ae3d9c4287f14fb13fb /llvm/unittests/Support/CommandLineTest.cpp | |
parent | 86cd3535206d6db611260aae6f2869202eae4bb4 (diff) | |
download | llvm-30cc712eb6f23a5c7beaae669bf2ab6beede7f20.zip llvm-30cc712eb6f23a5c7beaae669bf2ab6beede7f20.tar.gz llvm-30cc712eb6f23a5c7beaae669bf2ab6beede7f20.tar.bz2 |
[Clang][OpenMP] Fix run time crash when use_device_addr is used.
It is data mapping ordering problem.
According omp spec
If one or more map clauses are present, the list item conversions that
are performed for any use_device_ptr or use_device_addr clause occur
after all variables are mapped on entry to the region according to those
map clauses.
The change is to put mapping data for use_device_addr at end of data
mapping array.
Differential Revision: https://reviews.llvm.org/D134556
Diffstat (limited to 'llvm/unittests/Support/CommandLineTest.cpp')
0 files changed, 0 insertions, 0 deletions