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

The shift of 1 by an amount that is never more than 31 means that the warning is a false positive but is safe and fixes Werror builds.
This commit is contained in:
Simon Pilgrim 2020-04-02 12:01:47 +01:00
parent e6cb4b659a
commit b02c7a8152
1 changed files with 1 additions and 1 deletions

View File

@ -9430,7 +9430,7 @@ MaybeAlign SelectionDAG::InferPtrAlign(SDValue Ptr) const {
llvm::computeKnownBits(GV, Known, getDataLayout());
unsigned AlignBits = Known.countMinTrailingZeros();
if (AlignBits)
return commonAlignment(Align(1 << std::min(31U, AlignBits)), GVOffset);
return commonAlignment(Align(1ull << std::min(31U, AlignBits)), GVOffset);
}
// If this is a direct reference to a stack slot, use information about the