Skip to content

Commit f19f213

Browse files
committed
Apply clang-tidy fixes for llvm-else-after-return in DropUnitDims.cpp (NFC)
1 parent 3b61f5a commit f19f213

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mlir/lib/Dialect/Linalg/Transforms/DropUnitDims.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -457,8 +457,8 @@ LogicalResult linalg::dropUnitDims(RewriterBase &rewriter, GenericOp genericOp,
457457
Type operandType = operand.get().getType();
458458
if (auto memrefOperandType = dyn_cast_or_null<MemRefType>(operandType)) {
459459
return memrefOperandType.getLayout().isIdentity();
460-
} else if (auto tensorOperandType =
461-
dyn_cast<RankedTensorType>(operandType)) {
460+
}
461+
if (auto tensorOperandType = dyn_cast<RankedTensorType>(operandType)) {
462462
return tensorOperandType.getEncoding() == nullptr;
463463
}
464464
return false;

0 commit comments

Comments
 (0)