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 8262fbd commit d73570cCopy full SHA for d73570c
mlir/include/mlir/Bindings/Python/PybindAdaptors.h
@@ -206,7 +206,7 @@ struct type_caster<MlirFrozenRewritePatternSet> {
206
bool load(handle src, bool) {
207
py::object capsule = mlirApiObjectToCapsule(src);
208
value = mlirPythonCapsuleToFrozenRewritePatternSet(capsule.ptr());
209
- return true; // !mlirModuleIsNull(value);
+ return !mlirModuleIsNull(value);
210
}
211
static handle cast(MlirFrozenRewritePatternSet v, return_value_policy,
212
handle) {
0 commit comments