aboutsummaryrefslogtreecommitdiff
path: root/mlir/lib/Interfaces/Utils/InferIntRangeCommon.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'mlir/lib/Interfaces/Utils/InferIntRangeCommon.cpp')
-rw-r--r--mlir/lib/Interfaces/Utils/InferIntRangeCommon.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/mlir/lib/Interfaces/Utils/InferIntRangeCommon.cpp b/mlir/lib/Interfaces/Utils/InferIntRangeCommon.cpp
index af4ea5a..0f28cbc 100644
--- a/mlir/lib/Interfaces/Utils/InferIntRangeCommon.cpp
+++ b/mlir/lib/Interfaces/Utils/InferIntRangeCommon.cpp
@@ -304,7 +304,7 @@ static ConstantIntRanges inferDivURange(const ConstantIntRanges &lhs,
umin = lhsMin.udiv(rhsMax);
// X u/ Y u<= X.
- APInt umax = lhsMax;
+ const APInt &umax = lhsMax;
return ConstantIntRanges::fromUnsigned(umin, umax);
}