[all-commits] [llvm/llvm-project] d132b4: [RISCV] Replace llvm_unreachable with report_fatal...

Craig Topper via All-commits all-commits at lists.llvm.org
Tue Feb 15 08:41:05 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d132b47bb9c2f3028c4d2897b4e920579b055103
      https://github.com/llvm/llvm-project/commit/d132b47bb9c2f3028c4d2897b4e920579b055103
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2022-02-15 (Tue, 15 Feb 2022)

  Changed paths:
    M llvm/lib/Target/RISCV/MCTargetDesc/RISCVTargetStreamer.cpp

  Log Message:
  -----------
  [RISCV] Replace llvm_unreachable with report_fatal_error.

Parsing errors aren't handled earlier in all cases. A simple
example is llc -mtriple=riscv64 -mattr=+zve32f. If F or Finx is
not also specified, this will hit a parse error.

Use a fatal_error so that the error is conveyed to the user.




More information about the All-commits mailing list