Relax vector_builder::elt sanity check
authorRichard Sandiford <richard.sandiford@arm.com>
Fri, 12 Jul 2019 10:33:52 +0000 (10:33 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Fri, 12 Jul 2019 10:33:52 +0000 (10:33 +0000)
commit72ab1c51b607dd5446ee24ff9fce9178d6b811cb
tree4ea043f18db4a77be52c825960e2554ac7d007f1
parent49dbd6a0325f510af43b05bc0b91426779b4ed59
Relax vector_builder::elt sanity check

I'd made it a precondition of vector_builder::elt that the encoding
must have been fully populated and that all implicit elements are
therefore defined.  But for one of the AArch64 patches I'm working on,
it'd be convenient to be able to look back at previous elements while
building up the encoding.  This patch therefore makes the assert
specific to implicit elements only.

2019-07-12  Richard Sandiford  <richard.sandiford@arm.com>

gcc/
* vector-builder.h (vector_builder::elt): Allow already-supplied
elements to be read back before building is complete.

From-SVN: r273440
gcc/ChangeLog
gcc/vector-builder.h