mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-08 13:00:43 +00:00
Fix -Wsign-compare warning (issued by clang++).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100799 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
113902e9fb
commit
d0e88f3596
@ -5552,7 +5552,7 @@ SDValue DAGCombiner::visitEXTRACT_VECTOR_ELT(SDNode *N) {
|
|||||||
InVec = InVec.getOperand(0);
|
InVec = InVec.getOperand(0);
|
||||||
if (ISD::isNormalLoad(InVec.getNode())) {
|
if (ISD::isNormalLoad(InVec.getNode())) {
|
||||||
LN0 = cast<LoadSDNode>(InVec);
|
LN0 = cast<LoadSDNode>(InVec);
|
||||||
Elt = (Idx < (int)NumElems) ? Idx : Idx - NumElems;
|
Elt = (Idx < (int)NumElems) ? Idx : Idx - (int)NumElems;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user