r274654 - 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 11:33:01 PDT 2016


Author: aaronballman
Date: Wed Jul  6 13:33:01 2016
New Revision: 274654

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

Modified:
    cfe/trunk/lib/Sema/SemaChecking.cpp

Modified: cfe/trunk/lib/Sema/SemaChecking.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaChecking.cpp?rev=274654&r1=274653&r2=274654&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaChecking.cpp (original)
+++ cfe/trunk/lib/Sema/SemaChecking.cpp Wed Jul  6 13:33:01 2016
@@ -8892,7 +8892,7 @@ class SequenceChecker : public Evaluated
     struct Value {
       explicit Value(unsigned Parent) : Parent(Parent), Merged(false) {}
       unsigned Parent : 31;
-      bool Merged : 1;
+      unsigned Merged : 1;
     };
     SmallVector<Value, 8> Values;
 




More information about the cfe-commits mailing list