Skip to content

Commit 79cbeda

Browse files
committed
Fix MSVC "result of 32-bit shift implicitly converted to 64 bits" warning. NFC.
1 parent c1def63 commit 79cbeda

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Analysis/ScalarEvolution.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8339,8 +8339,8 @@ unsigned ScalarEvolution::getSmallConstantTripMultiple(const Loop *L,
83398339
// If a trip multiple is huge (>=2^32), the trip count is still divisible by
83408340
// the greatest power of 2 divisor less than 2^32.
83418341
return Multiple.getActiveBits() > 32
8342-
? 1U << std::min((uint32_t)31, Multiple.countTrailingZeros())
8343-
: Multiple.zextOrTrunc(32).getZExtValue();
8342+
? 1U << std::min((unsigned)31, Multiple.countTrailingZeros())
8343+
: (unsigned)Multiple.zextOrTrunc(32).getZExtValue();
83448344
}
83458345

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

0 commit comments

Comments
 (0)