Skip to content

Commit f89b7a9

Browse files
authored
[mlir] reword error message on unloaded dialect (#67980)
The previous message was confusing as it mentioned "registration" but isn't in fact related to dialect registration. Use other words instead.
1 parent 3cde1d8 commit f89b7a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mlir/include/mlir/IR/Builders.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -477,8 +477,8 @@ class OpBuilder : public Builder {
477477
if (LLVM_UNLIKELY(!opName)) {
478478
llvm::report_fatal_error(
479479
"Building op `" + OpT::getOperationName() +
480-
"` but it isn't registered in this MLIRContext: the dialect may not "
481-
"be loaded or this operation isn't registered by the dialect. See "
480+
"` but it isn't known in this MLIRContext: the dialect may not "
481+
"be loaded or this operation hasn't been added by the dialect. See "
482482
"also https://mlir.llvm.org/getting_started/Faq/"
483483
"#registered-loaded-dependent-whats-up-with-dialects-management");
484484
}

0 commit comments

Comments
 (0)