Skip to content

Commit d5f98f3

Browse files
committed
[MLIR] Apply clang-tidy fixes for performance-unnecessary-copy-initialization in InferIntRangeCommon.cpp (NFC)
1 parent 0d0cc06 commit d5f98f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/lib/Interfaces/Utils/InferIntRangeCommon.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ static ConstantIntRanges inferDivURange(const ConstantIntRanges &lhs,
304304
umin = lhsMin.udiv(rhsMax);
305305

306306
// X u/ Y u<= X.
307-
APInt umax = lhsMax;
307+
const APInt &umax = lhsMax;
308308
return ConstantIntRanges::fromUnsigned(umin, umax);
309309
}
310310

0 commit comments

Comments
 (0)