[Mlir-commits] [mlir] [MLIR][Python] Add bindings for PDL native rewrite function registering (PR #159926)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Tue Sep 23 08:03:29 PDT 2025


================
@@ -53,7 +53,7 @@ public:
   /// value is not an instance of `T`.
   template <typename T,
             typename ResultT = std::conditional_t<
-                std::is_convertible<T, bool>::value, T, std::optional<T>>>
+                std::is_constructible_v<bool, T>, T, std::optional<T>>>
----------------
PragmaTwice wrote:

I can change the API back to the origin form if we want to avoid touching that header. Maybe @jpienaar has idea for this : )

https://github.com/llvm/llvm-project/pull/159926


More information about the Mlir-commits mailing list