forked from OSchip/llvm-project
[mlir] remove a use of deprecated OpState::setAttr
This commit is contained in:
parent
75d63630eb
commit
a7cbc32a91
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue