[Mlir-commits] [mlir] 4fda0dc - Fix use of deprecated API

David Blaikie llvmlistbot at llvm.org
Wed Mar 3 14:07:51 PST 2021


Author: David Blaikie
Date: 2021-03-03T14:07:28-08:00
New Revision: 4fda0dc14b04f118c1b5f2c69c548efcde3baef0

URL: https://github.com/llvm/llvm-project/commit/4fda0dc14b04f118c1b5f2c69c548efcde3baef0
DIFF: https://github.com/llvm/llvm-project/commit/4fda0dc14b04f118c1b5f2c69c548efcde3baef0.diff

LOG: Fix use of deprecated API

Added: 
    

Modified: 
    mlir/examples/toy/Ch4/mlir/Dialect.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/examples/toy/Ch4/mlir/Dialect.cpp b/mlir/examples/toy/Ch4/mlir/Dialect.cpp
index 0d317db1bdff..face96461d08 100644
--- a/mlir/examples/toy/Ch4/mlir/Dialect.cpp
+++ b/mlir/examples/toy/Ch4/mlir/Dialect.cpp
@@ -177,7 +177,7 @@ static mlir::ParseResult parseConstantOp(mlir::OpAsmParser &parser,
 /// strings, attributes, operands, types, etc.
 static void print(mlir::OpAsmPrinter &printer, ConstantOp op) {
   printer << "toy.constant ";
-  printer.printOptionalAttrDict(op.getAttrs(), /*elidedAttrs=*/{"value"});
+  printer.printOptionalAttrDict(op->getAttrs(), /*elidedAttrs=*/{"value"});
   printer << op.value();
 }
 


        


More information about the Mlir-commits mailing list