From: Aaron Ballman Date: Wed, 6 Jul 2016 22:06:19 +0000 (+0000) Subject: Ensuring the bit-fields have the same type; MSVC will place the fields in different... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4a0412fb719b0f77f214b8688d9f039b3096a1be;p=clang Ensuring the bit-fields have the same type; MSVC will place the fields in different allocation units otherwise. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@274695 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Basic/Specifiers.h b/include/clang/Basic/Specifiers.h index c099d6e681..fffd4b1cd2 100644 --- a/include/clang/Basic/Specifiers.h +++ b/include/clang/Basic/Specifiers.h @@ -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