[Libomptarget] Allow static assert to work on 32-bit systems
authorJoseph Huber <jhuber6@vols.utk.edu>
Tue, 12 Jul 2022 12:02:17 +0000 (08:02 -0400)
committerJoseph Huber <jhuber6@vols.utk.edu>
Tue, 12 Jul 2022 12:05:01 +0000 (08:05 -0400)
commitb1d574867defe980312e63f6590cebbac953ca34
treeae92099dc5971419bdcdeb621d5100bdc15f47db
parent13019955bfac1706bebe8211ace773e44410730f
[Libomptarget] Allow static assert to work on 32-bit systems

Summary:
We use a static assert to make sure that someone doesn't change the size
of an argument struct without properly updating all the other logic.
This originally only checked the size on a 64-bit system with 8-byte
pointers, causing builds on 32-bit systems to fail. This patch allows
either pointer size to work.

Fixes #56486
openmp/libomptarget/include/omptarget.h