[llvm-commits] [llvm] r149254 - /llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
Douglas Gregor
dgregor at apple.com
Mon Jan 30 08:57:18 PST 2012
Author: dgregor
Date: Mon Jan 30 10:57:18 2012
New Revision: 149254
URL: http://llvm.org/viewvc/llvm-project?rev=149254&view=rev
Log:
Eliminate narrowing conversion in initializer list, to make C++11 happy
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=149254&r1=149253&r2=149254&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Mon Jan 30 10:57:18 2012
@@ -5294,8 +5294,8 @@
int MaskVec[] = {
Reverse1 ? 1 : 0,
Reverse1 ? 0 : 1,
- Reverse2 ? 1-NumElems : NumElems,
- Reverse2 ? NumElems : 1+NumElems
+ static_cast<int>(Reverse2 ? 1-NumElems : NumElems),
+ static_cast<int>(Reverse2 ? NumElems : 1+NumElems)
};
return DAG.getVectorShuffle(VT, dl, V[0], V[1], &MaskVec[0]);
}
More information about the llvm-commits
mailing list