diff --git a/llvm/lib/Target/RISCV/RISCVInstrInfo.cpp b/llvm/lib/Target/RISCV/RISCVInstrInfo.cpp index 4a8c5966d4b0d..f3c7385965c81 100644 --- a/llvm/lib/Target/RISCV/RISCVInstrInfo.cpp +++ b/llvm/lib/Target/RISCV/RISCVInstrInfo.cpp @@ -2633,7 +2633,7 @@ RISCVInstrInfo::getSerializableMachineMemOperandTargetFlags() const { static const std::pair TargetFlags[] = {{MONontemporalBit0, "riscv-nontemporal-domain-bit-0"}, {MONontemporalBit1, "riscv-nontemporal-domain-bit-1"}}; - return makeArrayRef(TargetFlags); + return ArrayRef>(TargetFlags); } // Returns true if this is the sext.w pattern, addiw rd, rs1, 0.