aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/rust-gcc.cc
diff options
context:
space:
mode:
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 e5dc6da..319c581 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;
}