]> granicus.if.org Git - clang/commitdiff
Just drop the bitfield from ExtProtoInfo, this struct isn't even heap allocated so...
authorBenjamin Kramer <benny.kra@googlemail.com>
Mon, 27 Feb 2012 20:04:30 +0000 (20:04 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Mon, 27 Feb 2012 20:04:30 +0000 (20:04 +0000)
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

include/clang/AST/Type.h

index bfff07ccbb4d23879ace678c8bdc856f6621737f..8146d7b6f1165413eea590e816d9d69fa9822bff 100644 (file)
@@ -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;