[all-commits] [llvm/llvm-project] 7e73fd: [RISCV] Minor code cleanups in RISCVISAInfo. NFCI

Craig Topper via All-commits all-commits at lists.llvm.org
Wed Jan 26 13:35:57 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7e73fd95a0ee5fa05f3426068a9f709853b24e54
      https://github.com/llvm/llvm-project/commit/7e73fd95a0ee5fa05f3426068a9f709853b24e54
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2022-01-26 (Wed, 26 Jan 2022)

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

  Log Message:
  -----------
  [RISCV] Minor code cleanups in RISCVISAInfo. NFCI

Pass StringRef by value instead of const reference.

Replace if () llvm_unreachable with an assert.

Replace size() == 0 with empty()




More information about the All-commits mailing list