aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacques Pienaar <jpienaar@google.com>2022-08-07 15:28:18 -0700
committerJacques Pienaar <jpienaar@google.com>2022-08-07 15:28:18 -0700
commit10de5512971014cb98d41feefcf4206ca442c743 (patch)
tree59ad1e6e0740707b8610cc6976fab112bfe751f9
parente6373de53d35ebc0e9b0d62e664b7718f589b28e (diff)
[mlir][python] Address deprecation warning for hasValue
-rw-r--r--mlir/lib/Bindings/Python/IRModule.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/mlir/lib/Bindings/Python/IRModule.h b/mlir/lib/Bindings/Python/IRModule.h
index 2e2ebaa27cac..246b244e1476 100644
--- a/mlir/lib/Bindings/Python/IRModule.h
+++ b/mlir/lib/Bindings/Python/IRModule.h
@@ -330,7 +330,7 @@ public:
PyDiagnosticHandler(MlirContext context, pybind11::object callback);
~PyDiagnosticHandler();
- bool isAttached() { return registeredID.hasValue(); }
+ bool isAttached() { return registeredID.has_value(); }
bool getHadError() { return hadError; }
/// Detaches the handler. Does nothing if not attached.