Commit 7d2f0f9b by Jakub Jelinek Committed by Jakub Jelinek

* c-common.c (get_nonnull_operand): Use tree_to_uhwi.

From-SVN: r255003
parent aa11164a
2017-11-21 Jakub Jelinek <jakub@redhat.com> 2017-11-21 Jakub Jelinek <jakub@redhat.com>
* c-common.c (get_nonnull_operand): Use tree_to_uhwi.
PR c++/83059 PR c++/83059
* c-common.c (get_atomic_generic_size): Use TREE_INT_CST_LOW * c-common.c (get_atomic_generic_size): Use TREE_INT_CST_LOW
instead of tree_to_uhwi, formatting fix. instead of tree_to_uhwi, formatting fix.
......
...@@ -5359,7 +5359,7 @@ get_nonnull_operand (tree arg_num_expr, unsigned HOST_WIDE_INT *valp) ...@@ -5359,7 +5359,7 @@ get_nonnull_operand (tree arg_num_expr, unsigned HOST_WIDE_INT *valp)
/* Verify the arg number is a small constant. */ /* Verify the arg number is a small constant. */
if (tree_fits_uhwi_p (arg_num_expr)) 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; return true;
} }
else else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment