[cfe-commits] r121475 - /cfe/trunk/include/clang/AST/Type.h

John McCall rjmccall at apple.com
Fri Dec 10 01:12:16 PST 2010


Author: rjmccall
Date: Fri Dec 10 03:12:16 2010
New Revision: 121475

URL: http://llvm.org/viewvc/llvm-project?rev=121475&view=rev
Log:
Optimize memory usage of FunctionProtoType on MSVC.


Modified:
    cfe/trunk/include/clang/AST/Type.h

Modified: cfe/trunk/include/clang/AST/Type.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/Type.h?rev=121475&r1=121474&r2=121475&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/Type.h (original)
+++ cfe/trunk/include/clang/AST/Type.h Fri Dec 10 03:12:16 2010
@@ -2168,10 +2168,10 @@
   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.





More information about the cfe-commits mailing list