Skip to content

Commit

Permalink
[lumen] fix issue when AttrSizedOperandSegments references builder
Browse files Browse the repository at this point in the history
  • Loading branch information
bitwalker committed Apr 10, 2020
1 parent ee41ef6 commit b843141
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mlir/tools/mlir-tblgen/OpFormatGen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -814,7 +814,7 @@ void OperationFormat::genParserVariadicSegmentResolution(Operator &op,
OpMethodBody &body) {
if (!allOperands && op.getTrait("OpTrait::AttrSizedOperandSegments")) {
body << " result.addAttribute(\"operand_segment_sizes\", "
<< "builder.getI32VectorAttr({";
<< "parser.getBuilder().getI32VectorAttr({";
auto interleaveFn = [&](const NamedTypeConstraint &operand) {
// If the operand is variadic emit the parsed size.
if (operand.isVariadic())
Expand Down

0 comments on commit b843141

Please sign in to comment.