d: Fix build on aarch64-suse-linux
commit98c18e040e2c65db93f1498bb421e83165da3738
authorIain Buclaw <ibuclaw@gdcproject.org>
Wed, 29 Jun 2022 16:27:08 +0000 (29 18:27 +0200)
committerIain Buclaw <ibuclaw@gdcproject.org>
Wed, 29 Jun 2022 16:27:08 +0000 (29 18:27 +0200)
tree83f955f9ea1042cbd90383a8025c9ec42c08f867
parentb01c075e7e6d84da846c2ff9087433a30ebeb0d2
d: Fix build on aarch64-suse-linux

The variables being used to get the result out of TYPE_VECTOR_SUBPARTS
were being flagged by -Werror=maybe-uninitialized.  As they have already
been checked for being constant earlier, use `to_constant' instead.

gcc/d/ChangeLog:

* intrinsics.cc (build_shuffle_mask_type): Use to_constant when
getting the number of subparts from a vector type.
(expand_intrinsic_vec_shufflevector): Likewise.
gcc/d/intrinsics.cc