Reduce unsharing in constexpr call evaluation.
authorJason Merrill <jason@redhat.com>
Mon, 10 Jun 2019 19:32:30 +0000 (15:32 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 10 Jun 2019 19:32:30 +0000 (15:32 -0400)
commit9b9eb42a4168c342e5cd71b13d21e63ba7e1b7ab
tree980566ca120b28a695e8c245a3a71a7d96303406
parent3c961dc7556fd00afac4a5275f1ea9444d43cd64
Reduce unsharing in constexpr call evaluation.

* constexpr.c (unshare_constructor): Only unshare if T is itself a
CONSTRUCTOR.
(cxx_eval_call_expression): Don't call it on the result here.

From-SVN: r272126
gcc/cp/ChangeLog
gcc/cp/constexpr.c