Skip to content

Commit 4b5fd88

Browse files
Update mlir/lib/CAPI/Transforms/Rewrite.cpp
Co-authored-by: Maksim Levental <[email protected]>
1 parent 8694c34 commit 4b5fd88

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

mlir/lib/CAPI/Transforms/Rewrite.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,9 @@ MlirOperation
7474
mlirRewriterBaseGetOperationAfterInsertion(MlirRewriterBase rewriter) {
7575
mlir::RewriterBase *base = unwrap(rewriter);
7676
mlir::Block *block = base->getInsertionBlock();
77-
auto it = base->getInsertionPoint();
78-
if (it == block->end()) {
77+
PyInsertionPoint it = base->getInsertionPoint();
78+
if (it == block->end())
7979
return {nullptr};
80-
}
8180

8281
return wrap(std::addressof(*it));
8382
}

0 commit comments

Comments
 (0)