forked from OSchip/llvm-project
[LegalizeDAG] Fix MSVC "result of 32-bit shift implicitly converted to 64 bits" warning. NFCI.
This commit is contained in:
parent
687e1d7121
commit
00e5676cf6
|
@ -2800,7 +2800,7 @@ SDValue SelectionDAGLegalize::ExpandPARITY(SDValue Op, const SDLoc &dl) {
|
|||
Result = Op;
|
||||
for (unsigned i = Log2_32_Ceil(Sz); i != 0;) {
|
||||
SDValue Shift = DAG.getNode(ISD::SRL, dl, VT, Result,
|
||||
DAG.getConstant(1 << (--i), dl, ShVT));
|
||||
DAG.getConstant(1ULL << (--i), dl, ShVT));
|
||||
Result = DAG.getNode(ISD::XOR, dl, VT, Result, Shift);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue