Fix MSVC "result of 32-bit shift implicitly converted to 64 bits" warning. NFCI.

llvm-svn: 372308
This commit is contained in:
Simon Pilgrim 2019-09-19 10:47:12 +00:00
parent 8a12e40185
commit da89495a3e
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ using BBInfoVector = SmallVectorImpl<BasicBlockInfo>;
/// @param KnownBits Number of known low offset bits.
inline unsigned UnknownPadding(llvm::Align Align, unsigned KnownBits) {
if (KnownBits < Log2(Align))
return Align.value() - (1u << KnownBits);
return Align.value() - (1ull << KnownBits);
return 0;
}