aboutsummaryrefslogtreecommitdiff
path: root/gcc/go/go-lang.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/go/go-lang.cc')
-rw-r--r--gcc/go/go-lang.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/go/go-lang.cc b/gcc/go/go-lang.cc
index e85a4bf..d5c871a 100644
--- a/gcc/go/go-lang.cc
+++ b/gcc/go/go-lang.cc
@@ -414,7 +414,7 @@ go_langhook_type_for_mode (machine_mode mode, int unsignedp)
if (GET_MODE_CLASS (mode) == MODE_VECTOR_BOOL
&& valid_vector_subparts_p (GET_MODE_NUNITS (mode)))
{
- unsigned int elem_bits = vector_element_size (GET_MODE_BITSIZE (mode),
+ unsigned int elem_bits = 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);