diff options
author | Jason Merrill <jason@redhat.com> | 2022-03-21 09:58:28 -0400 |
---|---|---|
committer | Jason Merrill <jason@redhat.com> | 2022-05-04 16:01:35 -0400 |
commit | c8df7208864d863f58da55d42ff82663059930b1 (patch) | |
tree | 89d3874ee2e725468abbc8b12735211a6e18189b /libcpp/system.h | |
parent | c2e846b539bb932d7f68f7e6b3e401c361cc3bf3 (diff) | |
download | gcc-c8df7208864d863f58da55d42ff82663059930b1.zip gcc-c8df7208864d863f58da55d42ff82663059930b1.tar.gz gcc-c8df7208864d863f58da55d42ff82663059930b1.tar.bz2 |
c++: optimize reshape_init
If the index of a constructor_elt is a FIELD_DECL, the CONSTRUCTOR is
already reshaped, so we can save time and memory by returning immediately.
gcc/cp/ChangeLog:
* decl.cc (reshape_init): Shortcut already-reshaped init.
(reshape_init_class): Assert not getting one here.
Diffstat (limited to 'libcpp/system.h')
0 files changed, 0 insertions, 0 deletions