We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d94e2d1 commit 7d29b71Copy full SHA for 7d29b71
mlir/lib/Conversion/ArithToAPFloat/ArithToAPFloat.cpp
@@ -54,8 +54,8 @@ struct ArithOpToAPFloatConversion final : OpRewritePattern<OpTy> {
54
PatternRewriter &rewriter) const override {
55
auto moduleOp = op->template getParentOfType<ModuleOp>();
56
if (!moduleOp) {
57
- op.emitError("arith op must be contained within a builtin.module");
58
- return failure();
+ return rewriter.notifyMatchFailure(
+ op, "arith op must be contained within a builtin.module");
59
}
60
// Get APFloat function from runtime library.
61
FailureOr<Operation *> fn =
0 commit comments