]> granicus.if.org Git - clang/commitdiff
Fix some widespread warnings in headers from the new coroutine code
authorReid Kleckner <rnk@google.com>
Mon, 6 Mar 2017 23:52:53 +0000 (23:52 +0000)
committerReid Kleckner <rnk@google.com>
Mon, 6 Mar 2017 23:52:53 +0000 (23:52 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@297101 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/Stmt.h
include/clang/Sema/ScopeInfo.h

index 4d17876e901196796bc3cfa8e084eff01e11b2ce..21043266f8be9df37d670315268c5c9e95634a04 100644 (file)
@@ -259,9 +259,6 @@ protected:
     unsigned : NumExprBits;
 
     unsigned IsImplicit : 1;
-
-    /// \brief The number of arguments to this type trait.
-    unsigned NumArgs : 32 - 1 - NumExprBits;
   };
 
   union {
index e2c65fe1a83aee482fc70362d93c639d35a25307..e49e4d94576a6c5a2333b5d49c5edb00a75d2538 100644 (file)
@@ -411,12 +411,12 @@ public:
       HasOMPDeclareReductionCombiner(false),
       HasFallthroughStmt(false),
       HasPotentialAvailabilityViolations(false),
-      NeedsCoroutineSuspends(true),
       ObjCShouldCallSuper(false),
       ObjCIsDesignatedInit(false),
       ObjCWarnForNoDesignatedInitChain(false),
       ObjCIsSecondaryInit(false),
       ObjCWarnForNoInitDelegation(false),
+      NeedsCoroutineSuspends(true),
       ErrorTrap(Diag) { }
 
   virtual ~FunctionScopeInfo();