diff options
author | Daniel Jacobowitz <dan@codesourcery.com> | 2007-07-26 11:52:19 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@gcc.gnu.org> | 2007-07-26 11:52:19 +0000 |
commit | 0c4d4efbde93c9d91498cfa4aea427c31f9426ef (patch) | |
tree | d53a5fda9fbcebe0370a3e0a07b56791df0d32b7 /gcc/fold-const.c | |
parent | 7e98624c5eefcd77b90ad1ebbbc06ab17b005a32 (diff) | |
download | gcc-0c4d4efbde93c9d91498cfa4aea427c31f9426ef.zip gcc-0c4d4efbde93c9d91498cfa4aea427c31f9426ef.tar.gz gcc-0c4d4efbde93c9d91498cfa4aea427c31f9426ef.tar.bz2 |
fold-const.c (fold_read_from_constant_string): Use build_int_cst_type.
* fold-const.c (fold_read_from_constant_string): Use
build_int_cst_type.
* tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
From-SVN: r126952
Diffstat (limited to 'gcc/fold-const.c')
-rw-r--r-- | gcc/fold-const.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gcc/fold-const.c b/gcc/fold-const.c index 5d40406..106aa4d 100644 --- a/gcc/fold-const.c +++ b/gcc/fold-const.c @@ -14062,10 +14062,9 @@ fold_read_from_constant_string (tree exp) && (GET_MODE_CLASS (TYPE_MODE (TREE_TYPE (TREE_TYPE (string)))) == MODE_INT) && (GET_MODE_SIZE (TYPE_MODE (TREE_TYPE (TREE_TYPE (string)))) == 1)) - return fold_convert (TREE_TYPE (exp), - build_int_cst (NULL_TREE, - (TREE_STRING_POINTER (string) - [TREE_INT_CST_LOW (index)]))); + return build_int_cst_type (TREE_TYPE (exp), + (TREE_STRING_POINTER (string) + [TREE_INT_CST_LOW (index)])); } return NULL; } |