[Mlir-commits] [mlir] d342843 - [MLIR][python bindings][fix] invalidate ops after PassManager run

llvmlistbot at llvm.org llvmlistbot at llvm.org
Fri Oct 20 20:16:28 PDT 2023


Author: max
Date: 2023-10-20T22:15:58-05:00
New Revision: d342843c2baa0bd35fef8ad373355b84a103fd27

URL: https://github.com/llvm/llvm-project/commit/d342843c2baa0bd35fef8ad373355b84a103fd27
DIFF: https://github.com/llvm/llvm-project/commit/d342843c2baa0bd35fef8ad373355b84a103fd27.diff

LOG: [MLIR][python bindings][fix] invalidate ops after PassManager run

Added: 
    

Modified: 
    mlir/test/CAPI/ir.c

Removed: 
    


################################################################################
diff  --git a/mlir/test/CAPI/ir.c b/mlir/test/CAPI/ir.c
index d5ca8884306c344..c6425f80a8bce9c 100644
--- a/mlir/test/CAPI/ir.c
+++ b/mlir/test/CAPI/ir.c
@@ -2252,6 +2252,7 @@ int testOperationWalk(MlirContext ctx) {
   // CHECK: i don't love you: func.return
   mlirOperationWalk(mlirModuleGetOperation(module), walkCallBack,
                     (void *)(&data), MlirWalkPreOrder);
+  mlirModuleDestroy(module);
   return 0;
 }
 


        


More information about the Mlir-commits mailing list