Introduce cp_fold_rvalue.
authorJason Merrill <jason@redhat.com>
Wed, 2 Dec 2015 19:04:43 +0000 (14:04 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 2 Dec 2015 19:04:43 +0000 (14:04 -0500)
commit7426fcc84f6e0a410139f60778d8d1c1d32d0283
tree89df03c9df34be833b337936ea9438fe8097604f
parent4250754eea1c10c88f49c9f11b9f912f992b7c42
Introduce cp_fold_rvalue.

* cp-gimplify.c (cp_fold_maybe_rvalue, cp_fold_rvalue): New.
(c_fully_fold): Use cp_fold_rvalue.
(cp_fold): Use them for rvalue operands.

From-SVN: r231197
gcc/cp/ChangeLog
gcc/cp/cp-gimplify.c