Skip to content

Commit 47ddd94

Browse files
committed
[MLIR] Apply clang-tidy fixes for performance-unnecessary-value-param in ShardingInterface.cpp (NFC)
1 parent 1948aa1 commit 47ddd94

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

mlir/lib/Dialect/Shard/Interfaces/ShardingInterface.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -513,8 +513,9 @@ LogicalResult shard::detail::defaultAddShardingAnnotations(
513513
}
514514

515515
#ifndef NDEBUG
516-
static bool isValueCompatibleWithFullReplicationSharding(Value value,
517-
Sharding sharding) {
516+
static bool
517+
isValueCompatibleWithFullReplicationSharding(Value value,
518+
const Sharding &sharding) {
518519
if (isa<RankedTensorType>(value.getType())) {
519520
return isFullReplication(sharding);
520521
}

0 commit comments

Comments
 (0)