[D] Remove unchecked to_constant in VECTOR_TYPE handling
authorRichard Sandiford <richard.sandiford@arm.com>
Mon, 4 Nov 2019 21:14:22 +0000 (21:14 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Mon, 4 Nov 2019 21:14:22 +0000 (21:14 +0000)
commita1b680597178df866e6de80444695fab82b90492
tree60cbd63325d8259537e2405caa2c2c9021bcd475
parent63b7a614dddaddea738de266f11cbcdeee01076c
[D] Remove unchecked to_constant in VECTOR_TYPE handling

The SVE port now tries to register variable-length VECTOR_TYPEs
at start-up, so it's no longer possible to use the asserting
to_constant on the number of vector elements.  This patch punts
on variable element counts instead, just like we do for other
things that the frontend doesn't recognise.

The brace indentation matches the surrounding style.

2019-11-04  Richard Sandiford  <richard.sandiford@arm.com>

gcc/d/
* d-builtins.cc (build_frontend_type): Cope with variable
TYPE_VECTOR_SUBPARTS.

From-SVN: r277793
gcc/d/ChangeLog
gcc/d/d-builtins.cc