[llvm-commits] [llvm] r126682 - /llvm/trunk/lib/Target/X86/Utils/X86ShuffleDecode.cpp
Chris Lattner
sabre at nondot.org
Mon Feb 28 12:50:35 PST 2011
Author: lattner
Date: Mon Feb 28 14:50:35 2011
New Revision: 126682
URL: http://llvm.org/viewvc/llvm-project?rev=126682&view=rev
Log:
fix a signed comparison warning.
Modified:
llvm/trunk/lib/Target/X86/Utils/X86ShuffleDecode.cpp
Modified: llvm/trunk/lib/Target/X86/Utils/X86ShuffleDecode.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/Utils/X86ShuffleDecode.cpp?rev=126682&r1=126681&r2=126682&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/Utils/X86ShuffleDecode.cpp (original)
+++ llvm/trunk/lib/Target/X86/Utils/X86ShuffleDecode.cpp Mon Feb 28 14:50:35 2011
@@ -166,7 +166,7 @@
void DecodeUNPCKLPMask(EVT VT,
SmallVectorImpl<unsigned> &ShuffleMask) {
- int NElts = VT.getVectorNumElements();
+ unsigned NElts = VT.getVectorNumElements();
for (unsigned i = 0; i != NElts/2; ++i) {
ShuffleMask.push_back(i); // Reads from dest
More information about the llvm-commits
mailing list