[Mlir-commits] [mlir] 42db67c - [mlir] Added erase() to fix memory leak.
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Thu Sep 7 02:46:36 PDT 2023
Author: Christian Sigg
Date: 2023-09-07T11:46:32+02:00
New Revision: 42db67c3ab3f657333f1a6bc90fed828f754945e
URL: https://github.com/llvm/llvm-project/commit/42db67c3ab3f657333f1a6bc90fed828f754945e
DIFF: https://github.com/llvm/llvm-project/commit/42db67c3ab3f657333f1a6bc90fed828f754945e.diff
LOG: [mlir] Added erase() to fix memory leak.
Added:
Modified:
mlir/unittests/IR/InterfaceTest.cpp
Removed:
################################################################################
diff --git a/mlir/unittests/IR/InterfaceTest.cpp b/mlir/unittests/IR/InterfaceTest.cpp
index 2be9e70dd59e8f..621a1c5fa18f3f 100644
--- a/mlir/unittests/IR/InterfaceTest.cpp
+++ b/mlir/unittests/IR/InterfaceTest.cpp
@@ -68,4 +68,5 @@ TEST(InterfaceTest, TestCustomClassOf) {
EXPECT_TRUE(isa<TestOptionallyImplementedOpInterface>(*op));
op.setImplementsInterface(false);
EXPECT_FALSE(isa<TestOptionallyImplementedOpInterface>(*op));
+ op.erase();
}
More information about the Mlir-commits
mailing list