Skip to content

Commit e5e0895

Browse files
committed
Apply clang-tidy fixes for performance-move-const-arg in IntRangeOptimizations.cpp (NFC)
1 parent 39c0ebd commit e5e0895

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mlir/lib/Dialect/Arith/Transforms/IntRangeOptimizations.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@ static bool intersects(const ConstantIntRanges &lhs,
3232
}
3333

3434
static FailureOr<bool> handleEq(ConstantIntRanges lhs, ConstantIntRanges rhs) {
35-
if (!intersects(std::move(lhs), std::move(rhs)))
35+
if (!intersects(lhs, rhs))
3636
return false;
3737

3838
return failure();
3939
}
4040

4141
static FailureOr<bool> handleNe(ConstantIntRanges lhs, ConstantIntRanges rhs) {
42-
if (!intersects(std::move(lhs), std::move(rhs)))
42+
if (!intersects(lhs, rhs))
4343
return true;
4444

4545
return failure();

0 commit comments

Comments
 (0)