From 63b3c56fca6d727feeb66ad5796e392ecd314443 Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Sun, 18 Aug 2019 17:26:30 +0000 Subject: [PATCH] Fix signed/unsigned comparison warning. NFCI. llvm-svn: 369213 --- llvm/lib/Target/X86/X86ISelLowering.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp index ac616ffa8ba6..c3e2c33ca724 100644 --- a/llvm/lib/Target/X86/X86ISelLowering.cpp +++ b/llvm/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])