From: Mehdi Amini Date: Tue, 11 Jan 2022 20:49:18 +0000 (+0000) Subject: Apply clang-tidy fixes for llvm-else-after-return in CommonFolders.h (NFC) X-Git-Tag: upstream/15.0.7~20557 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ac7a2742b2c6a173c24558742762b9b0b6ec23c0;p=platform%2Fupstream%2Fllvm.git Apply clang-tidy fixes for llvm-else-after-return in CommonFolders.h (NFC) --- diff --git a/mlir/include/mlir/Dialect/CommonFolders.h b/mlir/include/mlir/Dialect/CommonFolders.h index a52b890..b3f600e 100644 --- a/mlir/include/mlir/Dialect/CommonFolders.h +++ b/mlir/include/mlir/Dialect/CommonFolders.h @@ -41,8 +41,9 @@ Attribute constFoldBinaryOp(ArrayRef operands, return AttrElementT::get(lhs.getType(), calculate(lhs.getValue(), rhs.getValue())); - } else if (operands[0].isa() && - operands[1].isa()) { + } + if (operands[0].isa() && + operands[1].isa()) { // 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();