forked from OSchip/llvm-project
Fix MSVC "result of 32-bit shift implicitly converted to 64 bits" warning. NFCI.
llvm-svn: 372308
This commit is contained in:
parent
8a12e40185
commit
da89495a3e
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue