diff options
Diffstat (limited to 'gcc/ubsan.c')
-rw-r--r-- | gcc/ubsan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ubsan.c b/gcc/ubsan.c index 9dc19c9..c752a01 100644 --- a/gcc/ubsan.c +++ b/gcc/ubsan.c @@ -233,7 +233,7 @@ ubsan_source_location (location_t loc) static unsigned short get_ubsan_type_info_for_type (tree type) { - gcc_assert (TYPE_SIZE (type) && host_integerp (TYPE_SIZE (type), 1)); + gcc_assert (TYPE_SIZE (type) && tree_fits_uhwi_p (TYPE_SIZE (type))); int prec = exact_log2 (tree_low_cst (TYPE_SIZE (type), 1)); gcc_assert (prec != -1); return (prec << 1) | !TYPE_UNSIGNED (type); |