r274695 - Ensuring the bit-fields have the same type; MSVC will place the fields in different allocation units otherwise.

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 6 15:06:20 PDT 2016


Author: aaronballman
Date: Wed Jul  6 17:06:19 2016
New Revision: 274695

URL: http://llvm.org/viewvc/llvm-project?rev=274695&view=rev
Log:
Ensuring the bit-fields have the same type; MSVC will place the fields in different allocation units otherwise.

Modified:
    cfe/trunk/include/clang/Basic/Specifiers.h

Modified: cfe/trunk/include/clang/Basic/Specifiers.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/Specifiers.h?rev=274695&r1=274694&r2=274695&view=diff
==============================================================================
--- cfe/trunk/include/clang/Basic/Specifiers.h (original)
+++ cfe/trunk/include/clang/Basic/Specifiers.h Wed Jul  6 17:06:19 2016
@@ -85,7 +85,7 @@ namespace clang {
     /*DeclSpec::TST*/ unsigned Type  : 5;
     /*DeclSpec::TSS*/ unsigned Sign  : 2;
     /*DeclSpec::TSW*/ unsigned Width : 2;
-    bool ModeAttr : 1;
+    unsigned ModeAttr : 1;
   };  
 
   /// \brief A C++ access specifier (public, private, protected), plus the




More information about the cfe-commits mailing list