diff options
Diffstat (limited to 'gcc/tree.c')
-rw-r--r-- | gcc/tree.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree.c b/gcc/tree.c index 0f0e6753b19b..2a6038665227 100644 --- a/gcc/tree.c +++ b/gcc/tree.c @@ -1677,7 +1677,7 @@ bool cst_and_fits_in_hwi (const_tree x) { return (TREE_CODE (x) == INTEGER_CST - && TYPE_PRECISION (TREE_TYPE (x)) <= HOST_BITS_PER_WIDE_INT); + && (tree_fits_shwi_p (x) || tree_fits_uhwi_p (x))); } /* Build a newly constructed VECTOR_CST node of length LEN. */ |