]> granicus.if.org Git - clang/commitdiff
Optimize memory usage of FunctionProtoType on MSVC.
authorJohn McCall <rjmccall@apple.com>
Fri, 10 Dec 2010 09:12:16 +0000 (09:12 +0000)
committerJohn McCall <rjmccall@apple.com>
Fri, 10 Dec 2010 09:12:16 +0000 (09:12 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@121475 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/Type.h

index 1490ae76749b1f7e67fd897087e5776e5a880548..65978bede87035091049111ab0fb28f32d1516dd 100644 (file)
@@ -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.