Fix MSVC signed/unsigned comparison warning

llvm-svn: 316161
This commit is contained in:
Simon Pilgrim 2017-10-19 15:00:31 +00:00
parent d0649f978f
commit 0444e4fcd4
1 changed files with 1 additions and 1 deletions

View File

@ -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<int>::max() / 2) &&
(unsigned)(std::numeric_limits<int>::max() / 2) &&
"The unroll iterations max is too large!");
// Only analyze inner loops. We can't properly estimate cost of nested loops