13#ifndef FORTRAN_OPTIMIZER_SUPPORT_FATALERROR_H
14#define FORTRAN_OPTIMIZER_SUPPORT_FATALERROR_H
16#include "mlir/IR/Diagnostics.h"
17#include "llvm/Support/ErrorHandling.h"
26 const llvm::Twine &message,
27 bool genCrashDiag =
true) {
28 mlir::emitError(loc, message);
29 llvm::report_fatal_error(
"aborting", genCrashDiag);
Definition: AbstractConverter.h:31
void emitFatalError(mlir::Location loc, const llvm::Twine &message, bool genCrashDiag=true)
Definition: FatalError.h:25