From e546cb397a70f53032e8be1507ec4422b8f0503b Mon Sep 17 00:00:00 2001 From: Reid Kleckner Date: Mon, 6 Mar 2017 23:52:53 +0000 Subject: [PATCH] Fix some widespread warnings in headers from the new coroutine code git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@297101 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/AST/Stmt.h | 3 --- include/clang/Sema/ScopeInfo.h | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/include/clang/AST/Stmt.h b/include/clang/AST/Stmt.h index 4d17876e90..21043266f8 100644 --- a/include/clang/AST/Stmt.h +++ b/include/clang/AST/Stmt.h @@ -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 { diff --git a/include/clang/Sema/ScopeInfo.h b/include/clang/Sema/ScopeInfo.h index e2c65fe1a8..e49e4d9457 100644 --- a/include/clang/Sema/ScopeInfo.h +++ b/include/clang/Sema/ScopeInfo.h @@ -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(); -- 2.40.0