aboutsummaryrefslogtreecommitdiff
path: root/gcc/gimple-ssa-sprintf.cc
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2022-05-20 13:32:10 -0400
committerJason Merrill <jason@redhat.com>2022-05-24 15:52:03 -0400
commit1189c03859cefef4fc4fd44d57eb3d4d3348b562 (patch)
tree9edd7b5a787308e833080d55506efb3d18a86dc3 /gcc/gimple-ssa-sprintf.cc
parent0aee03cb638c262846f55477b40828f694c846a0 (diff)
downloadgcc-1189c03859cefef4fc4fd44d57eb3d4d3348b562.zip
gcc-1189c03859cefef4fc4fd44d57eb3d4d3348b562.tar.gz
gcc-1189c03859cefef4fc4fd44d57eb3d4d3348b562.tar.bz2
c++: *this folding in constexpr call
The code in cxx_eval_call_expression to fold *this was doing the wrong thing for array decay; we can use cxx_fold_indirect_ref instead. gcc/cp/ChangeLog: * constexpr.cc (cxx_fold_indirect_ref): Add default arg. (cxx_eval_call_expression): Call it. (cxx_fold_indirect_ref_1): Handle null empty_base.
Diffstat (limited to 'gcc/gimple-ssa-sprintf.cc')
0 files changed, 0 insertions, 0 deletions