From a9278fb1d87893bc2dfc0ac87ddb4daf47052dda Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Thu, 19 Oct 2017 15:00:31 +0000 Subject: [PATCH] Fix MSVC signed/unsigned comparison warning git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@316161 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Scalar/LoopUnrollPass.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Transforms/Scalar/LoopUnrollPass.cpp b/lib/Transforms/Scalar/LoopUnrollPass.cpp index a15a12d4311..7b1d6446a24 100644 --- a/lib/Transforms/Scalar/LoopUnrollPass.cpp +++ b/lib/Transforms/Scalar/LoopUnrollPass.cpp @@ -316,7 +316,7 @@ analyzeLoopUnrollCost(const Loop *L, unsigned TripCount, DominatorTree &DT, // to them without checking for overflows, and we already don't want to // analyze *massive* trip counts, so we force the max to be reasonably small. assert(UnrollMaxIterationsCountToAnalyze < - (std::numeric_limits::max() / 2) && + (unsigned)(std::numeric_limits::max() / 2) && "The unroll iterations max is too large!"); // Only analyze inner loops. We can't properly estimate cost of nested loops -- 2.11.0