[Mlir-commits] [mlir] [mlir][test] Fix memory leak after #184202 (PR #185142)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Fri Mar 6 16:54:36 PST 2026
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-mlir
Author: Thurston Dang (thurstond)
<details>
<summary>Changes</summary>
Reported by buildbot: https://lab.llvm.org/buildbot/#/builders/55/builds/25078
---
Full diff: https://github.com/llvm/llvm-project/pull/185142.diff
1 Files Affected:
- (modified) mlir/unittests/IR/OperationSupportTest.cpp (+3)
``````````diff
diff --git a/mlir/unittests/IR/OperationSupportTest.cpp b/mlir/unittests/IR/OperationSupportTest.cpp
index fc567bc4a8048..f00d5c1f7f927 100644
--- a/mlir/unittests/IR/OperationSupportTest.cpp
+++ b/mlir/unittests/IR/OperationSupportTest.cpp
@@ -370,6 +370,9 @@ TEST(OperationCloneTest, CloneWithDifferentResults) {
EXPECT_EQ(cloneOp->getResult(0).getType(), builder.getI32Type());
EXPECT_EQ(cloneOp->getResult(1).getType(), builder.getI16Type());
EXPECT_FALSE(map.contains(useOp->getResult(0)));
+
+ useOp->destroy();
+ cloneOp->destroy();
}
} // namespace
``````````
</details>
https://github.com/llvm/llvm-project/pull/185142
More information about the Mlir-commits
mailing list