Skip to content

Commit 1faa5e2

Browse files
authored
[MLIR][Python] fix getOwner
1 parent 4448ff4 commit 1faa5e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/lib/Bindings/Python/IRCore.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,7 @@ class PyOpOperand {
598598
public:
599599
PyOpOperand(MlirOpOperand opOperand) : opOperand(opOperand) {}
600600

601-
PyOpView getOwner() {
601+
nb::typed<nb::object, PyOpView> getOwner() {
602602
MlirOperation owner = mlirOpOperandGetOwner(opOperand);
603603
PyMlirContextRef context =
604604
PyMlirContext::forContext(mlirOperationGetContext(owner));

0 commit comments

Comments
 (0)