[Openmp-commits] [PATCH] D86324: [libomptarget][nfc] Drop __kmpc_data_sharing_slot flexible array member
Jon Chesterfield via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Thu Aug 20 18:17:10 PDT 2020
JonChesterfield added a comment.
This was written as part of debugging a port of the deviceRTL to openmp. It probably isn't necessary for that goal after all, but replacing benign UB with `.b` in a number of places seems worth having anyway.
================
Comment at: openmp/libomptarget/deviceRTLs/common/omptarget.h:85
+ void *DataEnd;
+ DEVICE char *Data() {
+ return reinterpret_cast<char *>(this) + sizeof(__kmpc_data_sharing_slot);
----------------
equivalent to the data[] field, slightly different syntax
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D86324/new/
https://reviews.llvm.org/D86324
More information about the Openmp-commits
mailing list