[llvm] r298917 - Fix signed/unsigned comparison warning
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 28 06:40:09 PDT 2017
Author: rksimon
Date: Tue Mar 28 08:40:09 2017
New Revision: 298917
URL: http://llvm.org/viewvc/llvm-project?rev=298917&view=rev
Log:
Fix signed/unsigned comparison warning
Modified:
llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
Modified: llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86ISelLowering.cpp?rev=298917&r1=298916&r2=298917&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Tue Mar 28 08:40:09 2017
@@ -8212,10 +8212,10 @@ static bool isTargetShuffleEquivalent(Ar
static SmallVector<int, 64> createTargetShuffleMask(ArrayRef<int> Mask,
const APInt &Zeroable) {
int NumElts = Mask.size();
- assert(NumElts == Zeroable.getBitWidth() && "Mismatch mask sizes");
+ assert(NumElts == (int)Zeroable.getBitWidth() && "Mismatch mask sizes");
SmallVector<int, 64> TargetMask(NumElts, SM_SentinelUndef);
- for (unsigned i = 0; i != NumElts; ++i) {
+ for (int i = 0; i != NumElts; ++i) {
int M = Mask[i];
if (M == SM_SentinelUndef)
continue;
More information about the llvm-commits
mailing list