[all-commits] [llvm/llvm-project] e2630a: [RISCV] Use StringRef(&C, 1) instead of std::strin...

Craig Topper via All-commits all-commits at lists.llvm.org
Wed Mar 29 21:52:35 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e2630a5b4cd2dd50eec9478cb7a18395b98df238
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2023-03-29 (Wed, 29 Mar 2023)

  Changed paths:
    M llvm/lib/Support/RISCVISAInfo.cpp

  Log Message:
  [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.

More information about the All-commits mailing list