diff --git a/mlir/unittests/IR/OperationSupportTest.cpp b/mlir/unittests/IR/OperationSupportTest.cpp index 6939064314db..8c46d961f0cc 100644 --- a/mlir/unittests/IR/OperationSupportTest.cpp +++ b/mlir/unittests/IR/OperationSupportTest.cpp @@ -223,6 +223,8 @@ TEST(OperationFormatPrintTest, CanUseVariadicFormat) { std::string str = formatv("{0}", *op).str(); ASSERT_STREQ(str.c_str(), "\"foo.bar\"() : () -> ()"); + + op->destroy(); } TEST(NamedAttrListTest, TestAppendAssign) {