Skip to content

Commit be2c031

Browse files
Update mlir/tools/mlir-tblgen/OpPythonBindingGen.cpp
Co-authored-by: Maksim Levental <[email protected]>
1 parent 35ea06e commit be2c031

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/tools/mlir-tblgen/OpPythonBindingGen.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ static void emitElementAccessors(
473473
if (!element.isVariableLength() || element.isOptional()) {
474474
type = std::strcmp(kind, "operand") == 0 ? "_ods_ir.Value"
475475
: "_ods_ir.OpResult";
476-
if (std::strcmp(kind, "operand") == 0) {
476+
if (std::strcmp(type, "_ods_ir.Value") == 0) {
477477
StringRef pythonType = getPythonType(element.constraint.getCppType());
478478
if (!pythonType.empty())
479479
type += "[" + pythonType.str() + "]";

0 commit comments

Comments
 (0)