From 34e80e94a21eb1ac2a9405d918e711e8b12256a9 Mon Sep 17 00:00:00 2001 From: John McCall Date: Fri, 10 Dec 2010 09:12:16 +0000 Subject: [PATCH] Optimize memory usage of FunctionProtoType on MSVC. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@121475 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/AST/Type.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/clang/AST/Type.h b/include/clang/AST/Type.h index 1490ae7674..65978bede8 100644 --- a/include/clang/AST/Type.h +++ b/include/clang/AST/Type.h @@ -2168,10 +2168,10 @@ class FunctionProtoType : public FunctionType, public llvm::FoldingSetNode { unsigned NumExceptions : 10; /// HasExceptionSpec - Whether this function has an exception spec at all. - bool HasExceptionSpec : 1; + unsigned HasExceptionSpec : 1; /// AnyExceptionSpec - Whether this function has a throw(...) spec. - bool AnyExceptionSpec : 1; + unsigned AnyExceptionSpec : 1; /// ArgInfo - There is an variable size array after the class in memory that /// holds the argument types. -- 2.40.0