[Openmp-commits] [PATCH] D102858: [libomptarget] Improve dlwrap compile time error diagnostic
Jon Chesterfield via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Thu May 20 12:33:54 PDT 2021
This revision was automatically updated to reflect the committed changes.
Closed by commit rG68b88ae6701a: [libomptarget] Improve dlwrap compile time error diagnostic (authored by JonChesterfield).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D102858/new/
https://reviews.llvm.org/D102858
Files:
openmp/libomptarget/include/dlwrap.h
Index: openmp/libomptarget/include/dlwrap.h
===================================================================
--- openmp/libomptarget/include/dlwrap.h
+++ openmp/libomptarget/include/dlwrap.h
@@ -158,6 +158,7 @@
return reinterpret_cast<T::FunctionType>(P); \
} \
}; \
+ static_assert(ARITY == trait<decltype(&SYMBOL)>::nargs, "Arity Error"); \
}
#define DLWRAP_IMPL(SYMBOL, ARITY) \
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D102858.346824.patch
Type: text/x-patch
Size: 631 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20210520/37066124/attachment.bin>
More information about the Openmp-commits
mailing list