mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-05 12:31:33 +00:00
Silence a GCC warning about comparing signed and unsigned types.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166922 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b210e6fea5
commit
34739054ec
@ -6598,8 +6598,8 @@ X86TargetLowering::lowerVectorIntExtend(SDValue Op, SelectionDAG &DAG) const {
|
||||
|
||||
// Find the expansion ratio, e.g. expanding from i8 to i32 has a ratio of 4.
|
||||
unsigned Shift = 1; // Start from 2, i.e. 1 << 1.
|
||||
while ((1 << Shift) < NumElems) {
|
||||
if (SVOp->getMaskElt(1 << Shift) == 1)
|
||||
while ((1U << Shift) < NumElems) {
|
||||
if (SVOp->getMaskElt(1U << Shift) == 1)
|
||||
break;
|
||||
Shift += 1;
|
||||
// The maximal ratio is 8, i.e. from i8 to i64.
|
||||
|
Loading…
Reference in New Issue
Block a user