Previously the elements of the notes tuple would be invalid objects when
accessed from a diagnostic handler, resulting in a segfault when used.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
mlir/lib/Bindings/Python/IRCore.cpp | ||
---|---|---|
788 | I'm not super familar with what pybind is doing here, but I believe the primary difference is that it will increment the ref count of the tuple element, which wasn't being done previously: https://github.com/pybind/pybind11/blob/59f03ee389c283cde65bd800c8f32ea690daf3fd/include/pybind11/pytypes.h#L1013 |
I'm not super familar with what pybind is doing here, but I believe the primary difference is that it will increment the ref count of the tuple element, which wasn't being done previously: https://github.com/pybind/pybind11/blob/59f03ee389c283cde65bd800c8f32ea690daf3fd/include/pybind11/pytypes.h#L1013