[all-commits] [llvm/llvm-project] 8e985e: [RISCV] Replace an 'else if' with 'else'+assert. NFC

Craig Topper via All-commits all-commits at lists.llvm.org
Mon Mar 27 13:48:32 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8e985e3604c4790a1ab5ef2dd6f0a8f56679f32a
      https://github.com/llvm/llvm-project/commit/8e985e3604c4790a1ab5ef2dd6f0a8f56679f32a
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2023-03-27 (Mon, 27 Mar 2023)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVGatherScatterLowering.cpp

  Log Message:
  -----------
  [RISCV] Replace an 'else if' with 'else'+assert. NFC

There are only two cases here. Using an assert ensures there is
no handled third case.

Also move comment to avoid odd formatting.

Reviewed By: reames

Differential Revision: https://reviews.llvm.org/D146998




More information about the All-commits mailing list