Unverified Commit 808a57f8 authored by Paul Fultz II's avatar Paul Fultz II Committed by GitHub
Browse files

Fix mlir compile error on ubuntu 22.04 (#2138)

parent d2486dcd
...@@ -93,6 +93,8 @@ struct mlir_handle ...@@ -93,6 +93,8 @@ struct mlir_handle
friend bool operator==(ptr x, ptr y) { return x.get_value() == y.get_value(); } friend bool operator==(ptr x, ptr y) { return x.get_value() == y.get_value(); }
friend bool operator!=(ptr x, ptr y) { return not(x == y); } friend bool operator!=(ptr x, ptr y) { return not(x == y); }
explicit operator bool() const noexcept { return obj != ptr(); }
T obj{}; T obj{};
}; };
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment