[libc-commits] [libc] [libc] fix HashTable warnings and build problems (PR #74371)
Joseph Huber via libc-commits
libc-commits at lists.llvm.org
Mon Dec 4 13:21:45 PST 2023
================
@@ -73,7 +73,7 @@ template <class BitMask> struct IteratableBitMaskAdaptor : public BitMask {
return *this;
}
LIBC_INLINE IteratableBitMaskAdaptor begin() { return *this; }
- LIBC_INLINE IteratableBitMaskAdaptor end() { return {0}; }
+ LIBC_INLINE IteratableBitMaskAdaptor end() { return {{0}}; }
----------------
jhuber6 wrote:
Is this really the best way to silence the warning? Can we not explicitly default construct the type to make it clearer what's actually being done here?
https://github.com/llvm/llvm-project/pull/74371
More information about the libc-commits
mailing list