aboutsummaryrefslogtreecommitdiff
path: root/gcc/range.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/range.h')
-rw-r--r--gcc/range.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/gcc/range.h b/gcc/range.h
index 3b0e9ef..f6a55ba 100644
--- a/gcc/range.h
+++ b/gcc/range.h
@@ -29,30 +29,30 @@ value_range range_negatives (tree type);
// Return an irange instance that is a boolean TRUE.
inline int_range<1>
-range_true (tree type)
+range_true (tree type = boolean_type_node)
{
unsigned prec = TYPE_PRECISION (type);
- return int_range<2> (type, wi::one (prec), wi::one (prec));
+ return int_range<1> (type, wi::one (prec), wi::one (prec));
}
// Return an irange instance that is a boolean FALSE.
inline int_range<1>
-range_false (tree type)
+range_false (tree type = boolean_type_node)
{
unsigned prec = TYPE_PRECISION (type);
- return int_range<2> (type, wi::zero (prec), wi::zero (prec));
+ return int_range<1> (type, wi::zero (prec), wi::zero (prec));
}
// Return an irange that covers both true and false.
inline int_range<1>
-range_true_and_false (tree type)
+range_true_and_false (tree type = boolean_type_node)
{
unsigned prec = TYPE_PRECISION (type);
if (prec == 1)
- return int_range<2> (type);
- return int_range<2> (type, wi::zero (prec), wi::one (prec));
+ return int_range<1> (type);
+ return int_range<1> (type, wi::zero (prec), wi::one (prec));
}
#endif // GCC_RANGE_H