diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2022-12-09 08:06:06 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-09 08:06:06 +0000 |
commit | d0cb3248ce6afcff7f2daff3a761cc4286e6b7a2 (patch) | |
tree | 61fa811a1679ec264cd113d117540a90ef3dc682 /gcc/rust/backend | |
parent | db4970e9db6c8425cf118f695492d55bed85e95a (diff) | |
parent | 277497f77cdbd85e4aad4a52bce3ea442a44cdc0 (diff) | |
download | gcc-d0cb3248ce6afcff7f2daff3a761cc4286e6b7a2.zip gcc-d0cb3248ce6afcff7f2daff3a761cc4286e6b7a2.tar.gz gcc-d0cb3248ce6afcff7f2daff3a761cc4286e6b7a2.tar.bz2 |
Merge #1683
1683: backend: Replace double_int_to_tree -> wide_int_to_tree r=CohenArthur a=CohenArthur
Co-authored-by: Arthur Cohen <arthur.cohen@embecosm.com>
Diffstat (limited to 'gcc/rust/backend')
-rw-r--r-- | gcc/rust/backend/rust-compile-expr.cc | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/gcc/rust/backend/rust-compile-expr.cc b/gcc/rust/backend/rust-compile-expr.cc index b369372..8b56be7 100644 --- a/gcc/rust/backend/rust-compile-expr.cc +++ b/gcc/rust/backend/rust-compile-expr.cc @@ -2135,7 +2135,14 @@ CompileExpr::compile_integer_literal (const HIR::LiteralExpr &expr, tyty->get_name ().c_str ()); return error_mark_node; } - return double_int_to_tree (type, mpz_get_double_int (type, ival, true)); + + tree result = wide_int_to_tree (type, wi::from_mpz (type, ival, true)); + + mpz_clear (type_min); + mpz_clear (type_max); + mpz_clear (ival); + + return result; } tree |