diff options
author | Douglas Gregor <dgregor@apple.com> | 2012-01-30 16:57:18 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2012-01-30 16:57:18 +0000 |
commit | b2f1b5028c03cd16c2452e81544d2da51fb373f2 (patch) | |
tree | 2dba29b21afac5323ad12af039e12b22b82c6188 | |
parent | 9c68354956fb8331c18d2cac42dfb5f825fbb8bd (diff) | |
download | external_llvm-b2f1b5028c03cd16c2452e81544d2da51fb373f2.zip external_llvm-b2f1b5028c03cd16c2452e81544d2da51fb373f2.tar.gz external_llvm-b2f1b5028c03cd16c2452e81544d2da51fb373f2.tar.bz2 |
Eliminate narrowing conversion in initializer list, to make C++11 happy
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149254 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/X86/X86ISelLowering.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/X86/X86ISelLowering.cpp b/lib/Target/X86/X86ISelLowering.cpp index 339dbd7..4d0662a 100644 --- a/lib/Target/X86/X86ISelLowering.cpp +++ b/lib/Target/X86/X86ISelLowering.cpp @@ -5294,8 +5294,8 @@ X86TargetLowering::LowerBUILD_VECTOR(SDValue Op, SelectionDAG &DAG) const { 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]); } |