Skip to content

Commit d9c3cd7

Browse files
committed
Revert MlirOperation PybindAdaptor for ADL
1 parent e97696f commit d9c3cd7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

mlir/lib/Bindings/Python/IRCore.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3726,8 +3726,9 @@ void mlir::python::populateIRCore(py::module &m) {
37263726
kValueReplaceAllUsesWithDocstring)
37273727
.def(
37283728
"replace_all_uses_except",
3729-
[](MlirValue self, MlirValue with, MlirOperation exception) {
3730-
mlirValueReplaceAllUsesExceptWithSingle(self, with, exception);
3729+
[](MlirValue self, MlirValue with, PyOperation &exception) {
3730+
MlirOperation exceptedUser = exception.get();
3731+
mlirValueReplaceAllUsesExceptWithSingle(self, with, exceptedUser);
37313732
},
37323733
py::arg("with"), py::arg("exceptions"),
37333734
kValueReplaceAllUsesExceptDocstring)

0 commit comments

Comments
 (0)