[Mlir-commits] [mlir] 5d93d2a - Apply clang-tidy fixes for llvm-else-after-return in OpPythonBindingGen.cpp (NFC)
Mehdi Amini
llvmlistbot at llvm.org
Tue May 31 04:54:43 PDT 2022
Author: Mehdi Amini
Date: 2022-05-31T11:54:19Z
New Revision: 5d93d2a9eb644efddf0afce15c52a8aae85a79c1
URL: https://github.com/llvm/llvm-project/commit/5d93d2a9eb644efddf0afce15c52a8aae85a79c1
DIFF: https://github.com/llvm/llvm-project/commit/5d93d2a9eb644efddf0afce15c52a8aae85a79c1.diff
LOG: Apply clang-tidy fixes for llvm-else-after-return in OpPythonBindingGen.cpp (NFC)
Added:
Modified:
mlir/tools/mlir-tblgen/OpPythonBindingGen.cpp
Removed:
################################################################################
diff --git a/mlir/tools/mlir-tblgen/OpPythonBindingGen.cpp b/mlir/tools/mlir-tblgen/OpPythonBindingGen.cpp
index d6b3aa60c97f..34db5bf46953 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<NamedTypeConstraint *>())
return ntype->isOptional();
- else
- return false;
+ return false;
};
// StringRefs in functionArgs refer to strings allocated by builderArgs.
More information about the Mlir-commits
mailing list