Fix signed/unsigned comparison warning. NFC.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Sun, 4 Aug 2019 12:48:19 +0000 (12:48 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Sun, 4 Aug 2019 12:48:19 +0000 (12:48 +0000)
llvm-svn: 367783

llvm/lib/Target/X86/X86ISelLowering.cpp

index 717abe7..45048d2 100644 (file)
@@ -34731,7 +34731,7 @@ SDValue X86TargetLowering::SimplifyMultipleUseDemandedBitsForTargetNode(
     // If all the demanded elts are from one operand and are inline,
     // then we can use the operand directly.
     int NumOps = ShuffleOps.size();
-    if (ShuffleMask.size() == NumElts &&
+    if (ShuffleMask.size() == (unsigned)NumElts &&
         llvm::all_of(ShuffleOps, [VT](SDValue V) {
           return VT.getSizeInBits() == V.getValueSizeInBits();
         })) {