[RISCV] Use StringRef(&C, 1) instead of std::string(1, C).
authorCraig Topper <craig.topper@sifive.com>
Thu, 30 Mar 2023 04:37:26 +0000 (21:37 -0700)
committerCraig Topper <craig.topper@sifive.com>
Thu, 30 Mar 2023 04:51:24 +0000 (21:51 -0700)
commite2630a5b4cd2dd50eec9478cb7a18395b98df238
treeb07eeef4514d69289db707843693638edbb6ed26
parent847b7f358b6facc7e7ab8c1261d8a65762acad02
[RISCV] Use StringRef(&C, 1) instead of std::string(1, C).

We're calling functions that take a StringRef. We can create one
from a single character variable without using std::string.
llvm/lib/Support/RISCVISAInfo.cpp