aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/backend/rust-tree.cc
diff options
context:
space:
mode:
authorThomas Schwinge <tschwinge@baylibre.com>2024-03-10 23:42:52 +0100
committerThomas Schwinge <tschwinge@baylibre.com>2024-03-10 23:42:52 +0100
commit9267ffafb35e8dc3e68f58c6e137c8aad824d9ef (patch)
treeb35c7760ff90fd7bd976607b1cd78ceb51ae642b /gcc/rust/backend/rust-tree.cc
parent6915bdb8fcdaeee585bbc9aaa52311e8c695da01 (diff)
parentf4a2ae2338962208b8039f154f5912402e94c378 (diff)
downloadgcc-9267ffafb35e8dc3e68f58c6e137c8aad824d9ef.zip
gcc-9267ffafb35e8dc3e68f58c6e137c8aad824d9ef.tar.gz
gcc-9267ffafb35e8dc3e68f58c6e137c8aad824d9ef.tar.bz2
Merge commit 'f4a2ae2338962208b8039f154f5912402e94c378' into HEAD
Diffstat (limited to 'gcc/rust/backend/rust-tree.cc')
-rw-r--r--gcc/rust/backend/rust-tree.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/rust/backend/rust-tree.cc b/gcc/rust/backend/rust-tree.cc
index 3790465..3f07722 100644
--- a/gcc/rust/backend/rust-tree.cc
+++ b/gcc/rust/backend/rust-tree.cc
@@ -5375,7 +5375,7 @@ c_common_type_for_mode (machine_mode mode, int unsignedp)
&& valid_vector_subparts_p (GET_MODE_NUNITS (mode)))
{
unsigned int elem_bits
- = vector_element_size (GET_MODE_BITSIZE (mode), GET_MODE_NUNITS (mode));
+ = vector_element_size (GET_MODE_PRECISION (mode), GET_MODE_NUNITS (mode));
tree bool_type = build_nonstandard_boolean_type (elem_bits);
return build_vector_type_for_mode (bool_type, mode);
}