aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-phiopt.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/tree-ssa-phiopt.cc')
-rw-r--r--gcc/tree-ssa-phiopt.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/tree-ssa-phiopt.cc b/gcc/tree-ssa-phiopt.cc
index 024a436..006c56f 100644
--- a/gcc/tree-ssa-phiopt.cc
+++ b/gcc/tree-ssa-phiopt.cc
@@ -1165,7 +1165,8 @@ value_replacement (basic_block cond_bb, basic_block middle_bb,
if (get_global_range_query ()->range_of_expr (r, phires,
phi))
{
- int_range<2> tmp (carg, carg);
+ wide_int warg = wi::to_wide (carg);
+ int_range<2> tmp (TREE_TYPE (carg), warg, warg);
r.union_ (tmp);
reset_flow_sensitive_info (phires);
set_range_info (phires, r);