Apply clang-tidy fixes for llvm-else-after-return in OpPythonBindingGen.cpp (NFC)

This commit is contained in:
Mehdi Amini 2022-05-30 14:44:00 +00:00
parent d8c46eb612
commit 5d93d2a9eb

View File

@ -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.