[PATCH] D69373: [Clang] Fix Sema class build fix

David CARLIER via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 24 03:31:37 PDT 2019


devnexen created this revision.
devnexen added a reviewer: rsmith.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

- DefaultedComparisonKind not being a classic enum, setting as a so small bitfield triggers gcc warning.


Repository:
  rC Clang

https://reviews.llvm.org/D69373

Files:
  clang/include/clang/Sema/Sema.h


Index: clang/include/clang/Sema/Sema.h
===================================================================
--- clang/include/clang/Sema/Sema.h
+++ clang/include/clang/Sema/Sema.h
@@ -2563,7 +2563,7 @@
   /// For a defaulted function, the kind of defaulted function that it is.
   class DefaultedFunctionKind {
     CXXSpecialMember SpecialMember : 8;
-    DefaultedComparisonKind Comparison : 8;
+    DefaultedComparisonKind Comparison;
 
   public:
     DefaultedFunctionKind()


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D69373.226220.patch
Type: text/x-patch
Size: 479 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20191024/f3620242/attachment.bin>


More information about the cfe-commits mailing list