re PR libstdc++/89825 (Jump table for variant visitation could be shortened for never...
authorVille Voutilainen <ville.voutilainen@gmail.com>
Tue, 26 Mar 2019 15:00:05 +0000 (17:00 +0200)
committerVille Voutilainen <ville@gcc.gnu.org>
Tue, 26 Mar 2019 15:00:05 +0000 (17:00 +0200)
commitda97b98ad341457aa46afc5c20d4ec95af5c1f91
tree60ef3f98de7b5703ab6778a1ab26bb6b84d4c042
parentcf66c831c1e05bbea0ef859ed3ae0027c476c618
re PR libstdc++/89825 (Jump table for variant visitation could be shortened for never empty variants)

PR libstdc++/89825

Fix based on a suggestion by Antony Polukhin.
* include/std/variant (_Extra_visit_slot_needed): New.
(_Multi_array): Use it.
(_S_apply_all_alts): Likewise.

From-SVN: r269947
libstdc++-v3/ChangeLog
libstdc++-v3/include/std/variant