mirror of
https://github.com/intel/llvm.git
synced 2026-01-25 09:13:38 +08:00
Use report_fatal_error instead of llvm::errs() + abort() (NFC)
This is making the error reporting in line with other fatal errors.
This commit is contained in:
@@ -495,13 +495,12 @@ MLIRContext::getOrLoadDialect(StringRef dialectNamespace, TypeID dialectID,
|
||||
LLVM_DEBUG(llvm::dbgs()
|
||||
<< "Load new dialect in Context" << dialectNamespace);
|
||||
#ifndef NDEBUG
|
||||
if (impl.multiThreadedExecutionContext != 0) {
|
||||
llvm::errs() << "Loading a dialect (" << dialectNamespace
|
||||
<< ") while in a multi-threaded execution context (maybe "
|
||||
"the PassManager): this can indicate a "
|
||||
"missing `dependentDialects` in a pass for example.";
|
||||
abort();
|
||||
}
|
||||
if (impl.multiThreadedExecutionContext != 0)
|
||||
llvm::report_fatal_error(
|
||||
"Loading a dialect (" + dialectNamespace +
|
||||
") while in a multi-threaded execution context (maybe "
|
||||
"the PassManager): this can indicate a "
|
||||
"missing `dependentDialects` in a pass for example.");
|
||||
#endif
|
||||
dialect = ctor();
|
||||
assert(dialect && "dialect ctor failed");
|
||||
|
||||
Reference in New Issue
Block a user