diff options
Diffstat (limited to 'gcc/tree-vrp.c')
-rw-r--r-- | gcc/tree-vrp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-vrp.c b/gcc/tree-vrp.c index 2d0af8725da..4c665711325 100644 --- a/gcc/tree-vrp.c +++ b/gcc/tree-vrp.c @@ -6909,7 +6909,7 @@ simplify_div_or_mod_using_ranges (gimple stmt) if (rhs_code == TRUNC_DIV_EXPR) { - t = build_int_cst (NULL_TREE, tree_log2 (op1)); + t = build_int_cst (integer_type_node, tree_log2 (op1)); gimple_assign_set_rhs_code (stmt, RSHIFT_EXPR); gimple_assign_set_rhs1 (stmt, op0); gimple_assign_set_rhs2 (stmt, t); |