Suppress useless GCC "bitfield is too small to hold all values of enum class" warning.
authorRichard Smith <richard@metafoo.co.uk>
Wed, 30 Oct 2019 00:05:40 +0000 (17:05 -0700)
committerRichard Smith <richard@metafoo.co.uk>
Wed, 30 Oct 2019 00:20:46 +0000 (17:20 -0700)
clang/include/clang/Sema/Sema.h

index 88d2136..a505ab1 100644 (file)
@@ -1238,7 +1238,7 @@ public:
   llvm::SmallPtrSet<SpecialMemberDecl, 4> SpecialMembersBeingDeclared;
 
   /// Kinds of defaulted comparison operator functions.
-  enum class DefaultedComparisonKind {
+  enum class DefaultedComparisonKind : unsigned char {
     /// This is not a defaultable comparison operator.
     None,
     /// This is an operator== that should be implemented as a series of