Fixed a memory leak in the PDLToPDLInterp RootOrderingTest.
authorStanislav Funiak <stano@cerebras.net>
Wed, 1 Dec 2021 12:10:37 +0000 (17:40 +0530)
committerUday Bondhugula <uday@polymagelabs.com>
Wed, 1 Dec 2021 12:10:46 +0000 (17:40 +0530)
commit810b2849181fb2b248b1d5f586cede6618ca7120
tree45f981f45cd039adfaa4839dfed9a3a710703ca6
parent5b4746f94aed5548cd918357299c585a89e3b524
Fixed a memory leak in the PDLToPDLInterp RootOrderingTest.

RootOrderingTest is a low-level unit test that creates values and uses them as vertices in a directed graph. These vertices were created using `builder.create`, but never freed, due to my insufficient understanding of the MLIR infrastructure.

Reviewed By: mehdi_amini, bondhugula, rriddle

Differential Revision: https://reviews.llvm.org/D114745
mlir/unittests/Conversion/PDLToPDLInterp/RootOrderingTest.cpp