forked from OSchip/llvm-project
Apply clang-tidy fixes for llvm-else-after-return in CommonFolders.h (NFC)
This commit is contained in:
parent
68874d8b5f
commit
ac7a2742b2
|
@ -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>();
|
||||
|
|
Loading…
Reference in New Issue