Change SmallVector param to the more general ArrayRef; NFCI
authorSanjay Patel <spatel@rotateright.com>
Thu, 29 Jan 2015 23:35:04 +0000 (23:35 +0000)
committerSanjay Patel <spatel@rotateright.com>
Thu, 29 Jan 2015 23:35:04 +0000 (23:35 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227514 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86ISelLowering.cpp

index bb6c919d03c7832c6a3a0bead63d156a6b36fc22..cf58fcc4168b4070bdc304295d1c72c1aa59d331 100644 (file)
@@ -6055,7 +6055,7 @@ LowerAsSplatVectorLoad(SDValue SrcOp, MVT VT, SDLoc dl, SelectionDAG &DAG) {
 /// FIXME: we'd also like to handle the case where the last elements are zero
 /// rather than undef via VZEXT_LOAD, but we do not detect that case today.
 /// There's even a handy isZeroNode for that purpose.
-static SDValue EltsFromConsecutiveLoads(EVT VT, SmallVectorImpl<SDValue> &Elts,
+static SDValue EltsFromConsecutiveLoads(EVT VT, ArrayRef<SDValue> Elts,
                                         SDLoc &DL, SelectionDAG &DAG,
                                         bool isAfterLegalize) {
   EVT EltVT = VT.getVectorElementType();