forked from OSchip/llvm-project
[mlir][NFC] Fix leak in unit test
Destroy operation created in `OperationFormatPrintTest.CanUseVariadicFormat` test.
This commit is contained in:
parent
7591d21032
commit
17664a256f
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue