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 bfff07c..8146d7b 100644
--- a/include/clang/AST/Type.h
+++ b/include/clang/AST/Type.h
@@ -2698,16 +2698,16 @@
/// 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;