diff options
author | Jacques Pienaar <jpienaar@google.com> | 2022-08-07 15:28:18 -0700 |
---|---|---|
committer | Jacques Pienaar <jpienaar@google.com> | 2022-08-07 15:28:18 -0700 |
commit | 10de5512971014cb98d41feefcf4206ca442c743 (patch) | |
tree | 59ad1e6e0740707b8610cc6976fab112bfe751f9 | |
parent | e6373de53d35ebc0e9b0d62e664b7718f589b28e (diff) |
[mlir][python] Address deprecation warning for hasValue
-rw-r--r-- | mlir/lib/Bindings/Python/IRModule.h | 2 |
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. |