[llvm] [RISCV] Just reporting an error shouldn't generate a crash diagnostic (PR #134040)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 14 10:39:21 PDT 2025


================
@@ -51,6 +51,14 @@ namespace RISCV {
 #include "RISCVGenSearchableTables.inc"
 } // namespace RISCV
 
+// Report an error but don't ask the user to report a bug.
+[[noreturn]] static void reportError(const char *Reason) {
+  report_fatal_error(Reason, false);
----------------
topperc wrote:

Add `/*gen_crash_diag=*/` in front of the `false`

https://github.com/llvm/llvm-project/pull/134040


More information about the llvm-commits mailing list