From 22ccc56aca2945206a3a91c534191964d649ef91 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 --- lib/Target/X86/X86ISelLowering.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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])