We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e97696f commit d9c3cd7Copy full SHA for d9c3cd7
mlir/lib/Bindings/Python/IRCore.cpp
@@ -3726,8 +3726,9 @@ void mlir::python::populateIRCore(py::module &m) {
3726
kValueReplaceAllUsesWithDocstring)
3727
.def(
3728
"replace_all_uses_except",
3729
- [](MlirValue self, MlirValue with, MlirOperation exception) {
3730
- mlirValueReplaceAllUsesExceptWithSingle(self, with, exception);
+ [](MlirValue self, MlirValue with, PyOperation &exception) {
+ MlirOperation exceptedUser = exception.get();
3731
+ mlirValueReplaceAllUsesExceptWithSingle(self, with, exceptedUser);
3732
},
3733
py::arg("with"), py::arg("exceptions"),
3734
kValueReplaceAllUsesExceptDocstring)
0 commit comments