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