Author: Alex Zinenko Date: 2021-01-07T14:20:36+01:00 New Revision: a7cbc32a916a64e9f61106956ed3866a6086ae6b
URL: https://github.com/llvm/llvm-project/commit/a7cbc32a916a64e9f61106956ed3866a6086ae6b DIFF: https://github.com/llvm/llvm-project/commit/a7cbc32a916a64e9f61106956ed3866a6086ae6b.diff LOG: [mlir] remove a use of deprecated OpState::setAttr Added: Modified: mlir/lib/Conversion/StandardToLLVM/StandardToLLVM.cpp Removed: ################################################################################ diff --git a/mlir/lib/Conversion/StandardToLLVM/StandardToLLVM.cpp b/mlir/lib/Conversion/StandardToLLVM/StandardToLLVM.cpp index 5e270881656c..51f34661bece 100644 --- a/mlir/lib/Conversion/StandardToLLVM/StandardToLLVM.cpp +++ b/mlir/lib/Conversion/StandardToLLVM/StandardToLLVM.cpp @@ -1894,7 +1894,7 @@ struct ConstantOpLowering : public ConvertOpToLLVMPattern<ConstantOp> { for (const NamedAttribute &attr : op->getAttrs()) { if (attr.first.strref() == "value") continue; - newOp.setAttr(attr.first, attr.second); + newOp->setAttr(attr.first, attr.second); } rewriter.replaceOp(op, newOp->getResults()); return success(); _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits