[mlir] remove a use of deprecated OpState::setAttr

This commit is contained in:
Alex Zinenko 2021-01-07 14:19:30 +01:00
parent 75d63630eb
commit a7cbc32a91
1 changed files with 1 additions and 1 deletions

View File

@ -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();