diff options
Diffstat (limited to 'gcc/range.cc')
-rw-r--r-- | gcc/range.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gcc/range.cc b/gcc/range.cc index d9e9e0c..7c4a830 100644 --- a/gcc/range.cc +++ b/gcc/range.cc @@ -32,14 +32,15 @@ along with GCC; see the file COPYING3. If not see value_range range_zero (tree type) { - return value_range (build_zero_cst (type), build_zero_cst (type)); + wide_int zero = wi::zero (TYPE_PRECISION (type)); + return value_range (type, zero, zero); } value_range range_nonzero (tree type) { - return value_range (build_zero_cst (type), build_zero_cst (type), - VR_ANTI_RANGE); + wide_int zero = wi::zero (TYPE_PRECISION (type)); + return value_range (type, zero, zero, VR_ANTI_RANGE); } value_range |