diff --git a/mlir/tools/mlir-tblgen/OpPythonBindingGen.cpp b/mlir/tools/mlir-tblgen/OpPythonBindingGen.cpp index d6b3aa60c97f42..34db5bf46953b3 100644 --- a/mlir/tools/mlir-tblgen/OpPythonBindingGen.cpp +++ b/mlir/tools/mlir-tblgen/OpPythonBindingGen.cpp @@ -904,8 +904,7 @@ static void emitDefaultOpBuilder(const Operator &op, raw_ostream &os) { return (nattr->attr.isOptional() || nattr->attr.hasDefaultValue()); if (auto *ntype = a.dyn_cast()) return ntype->isOptional(); - else - return false; + return false; }; // StringRefs in functionArgs refer to strings allocated by builderArgs.