diff options
Diffstat (limited to 'gcc/go/go-gcc.cc')
-rw-r--r-- | gcc/go/go-gcc.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/go/go-gcc.cc b/gcc/go/go-gcc.cc index f543644a7ac..d70e4f120e0 100644 --- a/gcc/go/go-gcc.cc +++ b/gcc/go/go-gcc.cc @@ -828,7 +828,7 @@ Gcc_backend::type_size(Btype* btype) return 1; t = TYPE_SIZE_UNIT(t); gcc_assert(cst_fits_uhwi_p (t)); - unsigned HOST_WIDE_INT val_wide = tree_to_hwi (t); + unsigned HOST_WIDE_INT val_wide = TREE_INT_CST_LOW (t); size_t ret = static_cast<size_t>(val_wide); gcc_assert(ret == val_wide); return ret; |