forked from OSchip/llvm-project
Apply clang-tidy fixes for llvm-else-after-return in OpPythonBindingGen.cpp (NFC)
This commit is contained in:
parent
0f68c959d2
commit
eacfd04744
|
@ -894,7 +894,7 @@ static void emitDefaultOpBuilder(const Operator &op, raw_ostream &os) {
|
|||
Argument a = op.getArg(builderArgIndex - numResultArgs);
|
||||
if (auto *nattr = a.dyn_cast<NamedAttribute *>())
|
||||
return (nattr->attr.isOptional() || nattr->attr.hasDefaultValue());
|
||||
else if (auto *ntype = a.dyn_cast<NamedTypeConstraint *>())
|
||||
if (auto *ntype = a.dyn_cast<NamedTypeConstraint *>())
|
||||
return ntype->isOptional();
|
||||
else
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue