[Openmp-commits] [PATCH] D44254: [OpenMP][libomptarget] Fix union.

Alexey Bataev via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Thu Mar 8 09:09:31 PST 2018


ABataev added inline comments.


================
Comment at: libomptarget/deviceRTLs/nvptx/src/omptarget-nvptx.h:163
 
   union { // both have same size
+    uint16_t vect[9];
----------------
It is better to remove this union at all and use `memcpy`


Repository:
  rOMP OpenMP

https://reviews.llvm.org/D44254





More information about the Openmp-commits mailing list