From 93b23c84399bd9f95332ebcbc170ea6edadd404e Mon Sep 17 00:00:00 2001 From: Mehdi Amini Date: Sun, 3 Apr 2022 23:18:19 +0000 Subject: [PATCH] Apply clang-tidy fixes for llvm-else-after-return in SCF.cpp (NFC) --- mlir/lib/Dialect/SCF/SCF.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mlir/lib/Dialect/SCF/SCF.cpp b/mlir/lib/Dialect/SCF/SCF.cpp index 3e5028f..f010bc6 100644 --- a/mlir/lib/Dialect/SCF/SCF.cpp +++ b/mlir/lib/Dialect/SCF/SCF.cpp @@ -1793,9 +1793,8 @@ struct CombineNestedIfs : public OpRewritePattern { // If the then value is defined within the scf.if, bail. if (tup.value().getParentRegion() == &op.getThenRegion()) { return failure(); - } else { - elseYieldsToUpgradeToSelect.push_back(tup.index()); } + elseYieldsToUpgradeToSelect.push_back(tup.index()); } Location loc = op.getLoc(); -- 2.7.4