Skip to content

Commit

Permalink
[mlir][ods] Fix incorrect accessing of segment_sizes
Browse files Browse the repository at this point in the history
The previous change resulted in prefixing a query that uses the raw
attribute as if function invocation. Fixing quickly, with updated test
to follow.
  • Loading branch information
jpienaar committed Oct 26, 2021
1 parent 1d2a4cd commit 332ce23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mlir/tools/mlir-tblgen/OpDefinitionsGen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 332ce23

Please sign in to comment.