forked from OSchip/llvm-project
[mlir][ods] Fix incorrect accessing of segment_sizes
The previous change resulted in prefixing a query that uses the raw attribute as if function invocation. Fixing quickly, with updated test to follow.
This commit is contained in:
parent
1d2a4cd57d
commit
332ce23f3c
|
@ -2443,7 +2443,7 @@ OpOperandAdaptorEmitter::OpOperandAdaptorEmitter(const Operator &op)
|
|||
ERROR_IF_PRUNED(m, "getOperands", op);
|
||||
m->body() << " return odsOperands;";
|
||||
}
|
||||
std::string attr = op.getGetterName("operand_segment_sizes");
|
||||
std::string attr = "operand_segment_sizes";
|
||||
std::string sizeAttrInit = formatv(adapterSegmentSizeAttrInitCode, attr);
|
||||
generateNamedOperandGetters(op, adaptor,
|
||||
/*isAdaptor=*/true, sizeAttrInit,
|
||||
|
|
Loading…
Reference in New Issue