Apply clang-tidy fixes for llvm-else-after-return in SCF.cpp (NFC)

This commit is contained in:
Mehdi Amini 2022-04-03 23:18:19 +00:00
parent f19e90bc1f
commit 93b23c8439
1 changed files with 1 additions and 2 deletions

View File

@ -1793,9 +1793,8 @@ struct CombineNestedIfs : public OpRewritePattern<IfOp> {
// 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();