[llvm] r295576 - [X86] Fix enumeral/non-enumeral comparison warning.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Sat Feb 18 14:40:58 PST 2017
Author: rksimon
Date: Sat Feb 18 16:40:58 2017
New Revision: 295576
URL: http://llvm.org/viewvc/llvm-project?rev=295576&view=rev
Log:
[X86] Fix enumeral/non-enumeral comparison warning.
gcc only allows you to mix enums / ints if they have the same signedness.
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=295576&r1=295575&r2=295576&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Sat Feb 18 16:40:58 2017
@@ -5738,7 +5738,7 @@ static bool getFauxShuffleMask(SDValue N
// Attempt to recognise a PINSR*(VEC, 0, Idx) shuffle pattern.
if (X86::isZeroNode(InScl)) {
Ops.push_back(InVec);
- for (unsigned i = 0; i != NumElts; ++i)
+ for (int i = 0; i != (int)NumElts; ++i)
Mask.push_back(i == InIdx ? SM_SentinelZero : i);
return true;
}
More information about the llvm-commits
mailing list