Skip to content

Commit badc760

Browse files
committed
[mlir] Remove a number of methods from mlir::OpState that just forward to mlir::Operation. All call sites have been converted in previous changes.
1 parent 221c3b1 commit badc760

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

mlir/lib/Conversion/AffineToStandard/AffineToStandard.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ class AffineYieldOpLowering : public OpRewritePattern<AffineYieldOp> {
334334

335335
LogicalResult matchAndRewrite(AffineYieldOp op,
336336
PatternRewriter &rewriter) const override {
337-
if (isa<scf::ParallelOp>(op.getParentOp())) {
337+
if (isa<scf::ParallelOp>(op->getParentOp())) {
338338
// scf.parallel does not yield any values via its terminator scf.yield but
339339
// models reductions differently using additional ops in its region.
340340
rewriter.replaceOpWithNewOp<scf::YieldOp>(op);

mlir/test/lib/Dialect/Shape/TestShapeFunctions.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ void ReportShapeFnPass::runOnOperation() {
4949

5050
// Lookup shape function library.
5151
SmallVector<shape::FunctionLibraryOp, 4> libraries;
52-
auto attr = module.getAttr("shape.lib");
52+
auto attr = module->getAttr("shape.lib");
5353
if (attr) {
5454
auto lookup = [&](Attribute attr) {
5555
return cast<shape::FunctionLibraryOp>(

0 commit comments

Comments
 (0)