From: Reid Kleckner Date: Tue, 17 Mar 2015 16:50:20 +0000 (+0000) Subject: Use an underlying enum type of unsigned to silence a -Wmicrosoft warning about being... X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=78158ce3a4792720e50cfab3c824056a74093ae2;p=oota-llvm.git 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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@232498 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp b/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp index dd0c9fd80d1..81379653d5d 100644 --- a/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp +++ b/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp @@ -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,