[Openmp-commits] [openmp] e7d998e - [NFC][OpenMP][Offloading] Fix compilation warning caused by misuse of `static_cast`
Shilei Tian via Openmp-commits
openmp-commits at lists.llvm.org
Fri Jul 8 18:00:33 PDT 2022
Author: Shilei Tian
Date: 2022-07-08T20:59:37-04:00
New Revision: e7d998e51e181f978bf5b8895a2447f110e7b456
URL: https://github.com/llvm/llvm-project/commit/e7d998e51e181f978bf5b8895a2447f110e7b456
DIFF: https://github.com/llvm/llvm-project/commit/e7d998e51e181f978bf5b8895a2447f110e7b456.diff
LOG: [NFC][OpenMP][Offloading] Fix compilation warning caused by misuse of `static_cast`
Added:
Modified:
openmp/libomptarget/include/omptarget.h
Removed:
################################################################################
diff --git a/openmp/libomptarget/include/omptarget.h b/openmp/libomptarget/include/omptarget.h
index f472b867088f..381fb4078e3c 100644
--- a/openmp/libomptarget/include/omptarget.h
+++ b/openmp/libomptarget/include/omptarget.h
@@ -121,7 +121,7 @@ struct __tgt_kernel_arguments {
void **ArgMappers; // User-defined mappers, possibly null.
int64_t Tripcount; // Tripcount for the teams / distribute loop, 0 otherwise.
};
-static_assert(sizeof(__tgt_kernel_arguments) == 64 && "Invalid struct size");
+static_assert(sizeof(__tgt_kernel_arguments) == 64, "Invalid struct size");
/// This struct is a record of an entry point or global. For a function
/// entry point the size is expected to be zero
More information about the Openmp-commits
mailing list