We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35ea06e commit be2c031Copy full SHA for be2c031
mlir/tools/mlir-tblgen/OpPythonBindingGen.cpp
@@ -473,7 +473,7 @@ static void emitElementAccessors(
473
if (!element.isVariableLength() || element.isOptional()) {
474
type = std::strcmp(kind, "operand") == 0 ? "_ods_ir.Value"
475
: "_ods_ir.OpResult";
476
- if (std::strcmp(kind, "operand") == 0) {
+ if (std::strcmp(type, "_ods_ir.Value") == 0) {
477
StringRef pythonType = getPythonType(element.constraint.getCppType());
478
if (!pythonType.empty())
479
type += "[" + pythonType.str() + "]";
0 commit comments