Skip to content

Commit b843141

Browse files
committed
[lumen] fix issue when AttrSizedOperandSegments references builder
1 parent ee41ef6 commit b843141

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/tools/mlir-tblgen/OpFormatGen.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -814,7 +814,7 @@ void OperationFormat::genParserVariadicSegmentResolution(Operator &op,
814814
OpMethodBody &body) {
815815
if (!allOperands && op.getTrait("OpTrait::AttrSizedOperandSegments")) {
816816
body << " result.addAttribute(\"operand_segment_sizes\", "
817-
<< "builder.getI32VectorAttr({";
817+
<< "parser.getBuilder().getI32VectorAttr({";
818818
auto interleaveFn = [&](const NamedTypeConstraint &operand) {
819819
// If the operand is variadic emit the parsed size.
820820
if (operand.isVariadic())

0 commit comments

Comments
 (0)