Apply clang-tidy fixes for llvm-else-after-return in CommonFolders.h (NFC)

This commit is contained in:
Mehdi Amini 2022-01-11 20:49:18 +00:00
parent 68874d8b5f
commit ac7a2742b2
1 changed files with 3 additions and 2 deletions

View File

@ -41,8 +41,9 @@ Attribute constFoldBinaryOp(ArrayRef<Attribute> operands,
return AttrElementT::get(lhs.getType(),
calculate(lhs.getValue(), rhs.getValue()));
} else if (operands[0].isa<SplatElementsAttr>() &&
operands[1].isa<SplatElementsAttr>()) {
}
if (operands[0].isa<SplatElementsAttr>() &&
operands[1].isa<SplatElementsAttr>()) {
// Both operands are splats so we can avoid expanding the values out and
// just fold based on the splat value.
auto lhs = operands[0].cast<SplatElementsAttr>();