Skip to content

Commit

Permalink
Apply clang-tidy fixes for llvm-else-after-return in MultiBuffer.cpp …
Browse files Browse the repository at this point in the history
…(NFC)
  • Loading branch information
joker-eph committed Oct 12, 2022
1 parent 1bdf21d commit 3739fd5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mlir/lib/Dialect/MemRef/Transforms/MultiBuffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,11 +128,11 @@ FailureOr<memref::AllocOp> mlir::memref::multiBuffer(memref::AllocOp allocOp,
auto getAffineExpr = [&](OpFoldResult e) -> AffineExpr {
if (Optional<int64_t> constValue = getConstantIntValue(e)) {
return getAffineConstantExpr(*constValue, allocOp.getContext());
} else {
auto value = getOrCreateValue(e, builder, candidateLoop->getLoc());
operands.push_back(value);
return getAffineDimExpr(dimCount++, allocOp.getContext());
}
auto value = getOrCreateValue(e, builder, candidateLoop->getLoc());
operands.push_back(value);
return getAffineDimExpr(dimCount++, allocOp.getContext());

};
auto init = getAffineExpr(*lowerBound);
auto step = getAffineExpr(*singleStep);
Expand Down

0 comments on commit 3739fd5

Please sign in to comment.