diff options
author | Jakub Jelinek <jakub@redhat.com> | 2017-11-21 14:57:11 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2017-11-21 14:57:11 +0100 |
commit | 7d2f0f9b61d700bae0f7ccdb68f830910bec6931 (patch) | |
tree | b7f100efbd8d728f914d7af8366253659062c54f /gcc | |
parent | aa11164a39053f6f0e24d922a5b6b993c47a96e6 (diff) | |
download | gcc-7d2f0f9b61d700bae0f7ccdb68f830910bec6931.zip gcc-7d2f0f9b61d700bae0f7ccdb68f830910bec6931.tar.gz gcc-7d2f0f9b61d700bae0f7ccdb68f830910bec6931.tar.bz2 |
* c-common.c (get_nonnull_operand): Use tree_to_uhwi.
From-SVN: r255003
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/c-family/ChangeLog | 2 | ||||
-rw-r--r-- | gcc/c-family/c-common.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/gcc/c-family/ChangeLog b/gcc/c-family/ChangeLog index 7258f86..308a617 100644 --- a/gcc/c-family/ChangeLog +++ b/gcc/c-family/ChangeLog @@ -1,5 +1,7 @@ 2017-11-21 Jakub Jelinek <jakub@redhat.com> + * c-common.c (get_nonnull_operand): Use tree_to_uhwi. + PR c++/83059 * c-common.c (get_atomic_generic_size): Use TREE_INT_CST_LOW instead of tree_to_uhwi, formatting fix. diff --git a/gcc/c-family/c-common.c b/gcc/c-family/c-common.c index 969f41b..9970e61 100644 --- a/gcc/c-family/c-common.c +++ b/gcc/c-family/c-common.c @@ -5359,7 +5359,7 @@ get_nonnull_operand (tree arg_num_expr, unsigned HOST_WIDE_INT *valp) /* Verify the arg number is a small constant. */ if (tree_fits_uhwi_p (arg_num_expr)) { - *valp = TREE_INT_CST_LOW (arg_num_expr); + *valp = tree_to_uhwi (arg_num_expr); return true; } else |