[llvm] r232498 - Use an underlying enum type of unsigned to silence a -Wmicrosoft warning about being unable to put (unsigned)-1 into the default underyling type of int

Reid Kleckner reid at kleckner.net
Tue Mar 17 09:50:23 PDT 2015


Author: rnk
Date: Tue Mar 17 11:50:20 2015
New Revision: 232498

URL: http://llvm.org/viewvc/llvm-project?rev=232498&view=rev
Log:
Use an underlying enum type of unsigned to silence a -Wmicrosoft warning about being unable to put (unsigned)-1 into the default underyling type of int

Modified:
    llvm/trunk/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp

Modified: llvm/trunk/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp?rev=232498&r1=232497&r2=232498&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp Tue Mar 17 11:50:20 2015
@@ -104,7 +104,7 @@ namespace {
 ///
 class InductiveRangeCheck {
   // Classifies a range check
-  enum RangeCheckKind {
+  enum RangeCheckKind : unsigned {
     // Range check of the form "0 <= I".
     RANGE_CHECK_LOWER = 1,
 





More information about the llvm-commits mailing list