From 0e2e13f4daa71edac982633120531333b45e77b5 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Sun, 26 Feb 2012 16:55:55 +0000 Subject: [PATCH] Bit pack ExtProtoInfo. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@151494 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/AST/Type.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/clang/AST/Type.h b/include/clang/AST/Type.h index 412b51d55f..e5e3c60083 100644 --- a/include/clang/AST/Type.h +++ b/include/clang/AST/Type.h @@ -2699,15 +2699,15 @@ public: struct ExtProtoInfo { ExtProtoInfo() : Variadic(false), HasTrailingReturn(false), ExceptionSpecType(EST_None), - TypeQuals(0), RefQualifier(RQ_None), NumExceptions(0), Exceptions(0), + RefQualifier(RQ_None), TypeQuals(0), NumExceptions(0), Exceptions(0), NoexceptExpr(0), ConsumedArguments(0) {} FunctionType::ExtInfo ExtInfo; - bool Variadic; - bool HasTrailingReturn; - ExceptionSpecificationType ExceptionSpecType; + bool Variadic : 1; + bool HasTrailingReturn : 1; + ExceptionSpecificationType ExceptionSpecType : 4; + RefQualifierKind RefQualifier : 2; unsigned char TypeQuals; - RefQualifierKind RefQualifier; unsigned NumExceptions; const QualType *Exceptions; Expr *NoexceptExpr; -- 2.40.0