[all-commits] [llvm/llvm-project] 0de619: [RISCV] Simplify code slightly. NFC

Craig Topper via All-commits all-commits at lists.llvm.org
Sat Jan 28 22:47:34 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0de61934a37180d6028852740eaa0e9e409d001a
      https://github.com/llvm/llvm-project/commit/0de61934a37180d6028852740eaa0e9e409d001a
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2023-01-28 (Sat, 28 Jan 2023)

  Changed paths:
    M llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp

  Log Message:
  -----------
  [RISCV] Simplify code slightly. NFC

These two pieces of code were using a switch with a single case and
a default that always returned.

Replace with an if statement that early returns.




More information about the All-commits mailing list