Fix "32-bit shift result used in 64-bit comparison" MSVC warning. NFCI.

This commit is contained in:
Simon Pilgrim 2021-01-28 11:10:04 +00:00
parent 0164d546d2
commit aa76cebab5
1 changed files with 1 additions and 1 deletions

View File

@ -826,7 +826,7 @@ bool RISCVDAGToDAGISel::SelectAddrFI(SDValue Addr, SDValue &Base) {
// from PatFrags in tablegen.
bool RISCVDAGToDAGISel::isUnneededShiftMask(SDNode *N, unsigned Width) const {
assert(N->getOpcode() == ISD::AND && "Unexpected opcode");
assert(Width >= 5 && N->getValueSizeInBits(0) >= (1 << Width) &&
assert(Width >= 5 && N->getValueSizeInBits(0) >= (1ULL << Width) &&
"Unexpected width");
const APInt &Val = N->getConstantOperandAPInt(1);