Skip to content

Commit

Permalink
Fix MSVC "result of 32-bit shift implicitly converted to 64 bits" war…
Browse files Browse the repository at this point in the history
…ning. NFC.
  • Loading branch information
RKSimon committed May 17, 2023
1 parent c1def63 commit 79cbeda
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions llvm/lib/Analysis/ScalarEvolution.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8339,8 +8339,8 @@ unsigned ScalarEvolution::getSmallConstantTripMultiple(const Loop *L,
// If a trip multiple is huge (>=2^32), the trip count is still divisible by
// the greatest power of 2 divisor less than 2^32.
return Multiple.getActiveBits() > 32
? 1U << std::min((uint32_t)31, Multiple.countTrailingZeros())
: Multiple.zextOrTrunc(32).getZExtValue();
? 1U << std::min((unsigned)31, Multiple.countTrailingZeros())
: (unsigned)Multiple.zextOrTrunc(32).getZExtValue();
}

/// Returns the largest constant divisor of the trip count of this loop as a
Expand Down

0 comments on commit 79cbeda

Please sign in to comment.