aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/rust-gcc.cc
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2022-12-09 08:06:06 +0000
committerGitHub <noreply@github.com>2022-12-09 08:06:06 +0000
commitd0cb3248ce6afcff7f2daff3a761cc4286e6b7a2 (patch)
tree61fa811a1679ec264cd113d117540a90ef3dc682 /gcc/rust/rust-gcc.cc
parentdb4970e9db6c8425cf118f695492d55bed85e95a (diff)
parent277497f77cdbd85e4aad4a52bce3ea442a44cdc0 (diff)
downloadgcc-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/rust-gcc.cc')
-rw-r--r--gcc/rust/rust-gcc.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/rust/rust-gcc.cc b/gcc/rust/rust-gcc.cc
index 5bb5313..7fd9b65 100644
--- a/gcc/rust/rust-gcc.cc
+++ b/gcc/rust/rust-gcc.cc
@@ -1028,7 +1028,7 @@ Gcc_backend::integer_constant_expression (tree t, mpz_t val)
if (t == error_mark_node)
return error_mark_node;
- tree ret = double_int_to_tree (t, mpz_get_double_int (t, val, true));
+ tree ret = wide_int_to_tree (t, wi::from_mpz (t, val, true));
return ret;
}