Skip to content

Commit 08e2c15

Browse files
authored
[mlir][python] disable nanobind leak warnings (#121099)
1 parent 01c8cd6 commit 08e2c15

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mlir/lib/Bindings/Python/IRCore.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2587,6 +2587,8 @@ class PyOpAttributeMap {
25872587
//------------------------------------------------------------------------------
25882588

25892589
void mlir::python::populateIRCore(nb::module_ &m) {
2590+
// disable leak warnings which tend to be false positives.
2591+
nb::set_leak_warnings(false);
25902592
//----------------------------------------------------------------------------
25912593
// Enums.
25922594
//----------------------------------------------------------------------------

0 commit comments

Comments
 (0)