r251412 - Widen this enum bitfield by one bit to prevent sign extension in MSVC

Reid Kleckner via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 27 09:24:04 PDT 2015


Author: rnk
Date: Tue Oct 27 11:24:03 2015
New Revision: 251412

URL: http://llvm.org/viewvc/llvm-project?rev=251412&view=rev
Log:
Widen this enum bitfield by one bit to prevent sign extension in MSVC

Modified:
    cfe/trunk/include/clang/Sema/ScopeInfo.h

Modified: cfe/trunk/include/clang/Sema/ScopeInfo.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Sema/ScopeInfo.h?rev=251412&r1=251411&r2=251412&view=diff
==============================================================================
--- cfe/trunk/include/clang/Sema/ScopeInfo.h (original)
+++ cfe/trunk/include/clang/Sema/ScopeInfo.h Tue Oct 27 11:24:03 2015
@@ -89,7 +89,7 @@ protected:
 public:
   /// \brief What kind of scope we are describing.
   ///
-  ScopeKind Kind : 2;
+  ScopeKind Kind : 3;
 
   /// \brief Whether this function contains a VLA, \@try, try, C++
   /// initializer, or anything else that can't be jumped past.




More information about the cfe-commits mailing list