From: Simon Pilgrim Date: Sun, 18 Aug 2019 17:26:30 +0000 (+0000) Subject: Fix signed/unsigned comparison warning. NFCI. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=67570bd6bce44f742390f791234054975d1c151d;p=llvm Fix signed/unsigned comparison warning. NFCI. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@369213 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/X86/X86ISelLowering.cpp b/lib/Target/X86/X86ISelLowering.cpp index ac616ffa8ba..c3e2c33ca72 100644 --- a/lib/Target/X86/X86ISelLowering.cpp +++ b/lib/Target/X86/X86ISelLowering.cpp @@ -10095,8 +10095,8 @@ static bool isTargetShuffleEquivalent(ArrayRef Mask, // equivalent inputs that make the shuffles equivalent. auto *BV1 = dyn_cast_or_null(V1); auto *BV2 = dyn_cast_or_null(V2); - BV1 = ((BV1 && BV1->getNumOperands() != Size) ? nullptr : BV1); - BV2 = ((BV2 && BV2->getNumOperands() != Size) ? nullptr : BV2); + BV1 = ((BV1 && Size != (int)BV1->getNumOperands()) ? nullptr : BV1); + BV2 = ((BV2 && Size != (int)BV2->getNumOperands()) ? nullptr : BV2); for (int i = 0; i < Size; ++i) { if (Mask[i] == SM_SentinelUndef || Mask[i] == ExpectedMask[i])