flang: Fix flang build with -Wctad-maybe-unsupported

Shooting from the hip since I don't have a flang build locally, but
hopefully this works.
This commit is contained in:
David Blaikie 2022-08-16 01:07:38 +00:00
parent 11f45f36dc
commit 248591aabe
1 changed files with 3 additions and 0 deletions

View File

@ -123,6 +123,9 @@ template <typename A> struct ListItemCount {
const std::size_t value;
};
template<typename A>
ListItemCount(std::initializer_list<A>) -> ListItemCount<A>;
#define ENUM_CLASS(NAME, ...) \
enum class NAME { __VA_ARGS__ }; \
LLVM_ATTRIBUTE_UNUSED static constexpr std::size_t NAME##_enumSize{[] { \