From: Benjamin Kramer Date: Mon, 27 Feb 2012 20:04:30 +0000 (+0000) Subject: Just drop the bitfield from ExtProtoInfo, this struct isn't even heap allocated so... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=361ae9a83e1e3098adabaaad34d0925b30358f38;p=clang Just drop the bitfield from ExtProtoInfo, this struct isn't even heap allocated so it doesn't hurt. MSVC < 10 still has the signed enum bitfield bug, making the top bit unusable. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@151545 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/AST/Type.h b/include/clang/AST/Type.h index bfff07ccbb..8146d7b6f1 100644 --- a/include/clang/AST/Type.h +++ b/include/clang/AST/Type.h @@ -2698,16 +2698,16 @@ public: /// ExtProtoInfo - Extra information about a function prototype. struct ExtProtoInfo { ExtProtoInfo() : - Variadic(false), HasTrailingReturn(false), ExceptionSpecType(EST_None), - RefQualifier(RQ_None), TypeQuals(0), NumExceptions(0), Exceptions(0), - NoexceptExpr(0), ConsumedArguments(0) {} + Variadic(false), HasTrailingReturn(false), TypeQuals(0), + ExceptionSpecType(EST_None), RefQualifier(RQ_None), + NumExceptions(0), Exceptions(0), NoexceptExpr(0), ConsumedArguments(0) {} FunctionType::ExtInfo ExtInfo; bool Variadic : 1; bool HasTrailingReturn : 1; - ExceptionSpecificationType ExceptionSpecType : 4; - RefQualifierKind RefQualifier : 3; unsigned char TypeQuals; + ExceptionSpecificationType ExceptionSpecType; + RefQualifierKind RefQualifier; unsigned NumExceptions; const QualType *Exceptions; Expr *NoexceptExpr;