diff options
Diffstat (limited to 'gcc/tree-ssa-ccp.c')
-rw-r--r-- | gcc/tree-ssa-ccp.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gcc/tree-ssa-ccp.c b/gcc/tree-ssa-ccp.c index e2d3bbf..9149aa6 100644 --- a/gcc/tree-ssa-ccp.c +++ b/gcc/tree-ssa-ccp.c @@ -1149,7 +1149,8 @@ widen_bitfield (tree val, tree field, tree var) mask |= ((HOST_WIDE_INT) 1) << i; wide_val = build (BIT_AND_EXPR, TREE_TYPE (var), val, - fold_convert (TREE_TYPE (var), build_int_2 (mask, 0))); + fold_convert (TREE_TYPE (var), + build_int_cst (NULL_TREE, mask, 0))); } else { @@ -1160,7 +1161,8 @@ widen_bitfield (tree val, tree field, tree var) mask |= ((HOST_WIDE_INT) 1) << (var_size - i - 1); wide_val = build (BIT_IOR_EXPR, TREE_TYPE (var), val, - fold_convert (TREE_TYPE (var), build_int_2 (mask, 0))); + fold_convert (TREE_TYPE (var), + build_int_cst (NULL_TREE, mask, 0))); } return fold (wide_val); @@ -1691,7 +1693,7 @@ maybe_fold_offset_to_array_ref (tree base, tree offset, tree orig_type) || lrem || hrem) return NULL_TREE; - idx = build_int_2 (lquo, hquo); + idx = build_int_cst (NULL_TREE, lquo, hquo); } /* Assume the low bound is zero. If there is a domain type, get the |