Skip to content

Commit 3739fd5

Browse files
committed
Apply clang-tidy fixes for llvm-else-after-return in MultiBuffer.cpp (NFC)
1 parent 1bdf21d commit 3739fd5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

mlir/lib/Dialect/MemRef/Transforms/MultiBuffer.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,11 +128,11 @@ FailureOr<memref::AllocOp> mlir::memref::multiBuffer(memref::AllocOp allocOp,
128128
auto getAffineExpr = [&](OpFoldResult e) -> AffineExpr {
129129
if (Optional<int64_t> constValue = getConstantIntValue(e)) {
130130
return getAffineConstantExpr(*constValue, allocOp.getContext());
131-
} else {
132-
auto value = getOrCreateValue(e, builder, candidateLoop->getLoc());
133-
operands.push_back(value);
134-
return getAffineDimExpr(dimCount++, allocOp.getContext());
135131
}
132+
auto value = getOrCreateValue(e, builder, candidateLoop->getLoc());
133+
operands.push_back(value);
134+
return getAffineDimExpr(dimCount++, allocOp.getContext());
135+
136136
};
137137
auto init = getAffineExpr(*lowerBound);
138138
auto step = getAffineExpr(*singleStep);

0 commit comments

Comments
 (0)