Skip to content

Commit

Permalink
[LegalizeDAG] Fix MSVC "result of 32-bit shift implicitly converted t…
Browse files Browse the repository at this point in the history
…o 64 bits" warning. NFCI.
  • Loading branch information
RKSimon committed Sep 14, 2020
1 parent 687e1d7 commit 00e5676
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 00e5676

Please sign in to comment.