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 8694c34 commit 4b5fd88Copy full SHA for 4b5fd88
mlir/lib/CAPI/Transforms/Rewrite.cpp
@@ -74,10 +74,9 @@ MlirOperation
74
mlirRewriterBaseGetOperationAfterInsertion(MlirRewriterBase rewriter) {
75
mlir::RewriterBase *base = unwrap(rewriter);
76
mlir::Block *block = base->getInsertionBlock();
77
- auto it = base->getInsertionPoint();
78
- if (it == block->end()) {
+ PyInsertionPoint it = base->getInsertionPoint();
+ if (it == block->end())
79
return {nullptr};
80
- }
81
82
return wrap(std::addressof(*it));
83
}
0 commit comments