diff --git a/llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp b/llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp index d4f372652a5e4..4eef8de06b278 100644 --- a/llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp +++ b/llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp @@ -1254,7 +1254,7 @@ RISCVTTIImpl::getIntrinsicInstrCost(const IntrinsicCostAttributes &ICA, Type *SrcTy = ICA.getArgTypes().front(); auto SrcLT = getTypeLegalizationCost(SrcTy); if (ST->hasVInstructions() && LT.second.isVector()) { - ArrayRef Ops; + SmallVector Ops; unsigned SrcEltSz = DL.getTypeSizeInBits(SrcTy->getScalarType()); unsigned DstEltSz = DL.getTypeSizeInBits(RetTy->getScalarType()); if (LT.second.getVectorElementType() == MVT::bf16) {