diff options
author | Marek Polacek <polacek@redhat.com> | 2023-07-25 14:03:02 -0400 |
---|---|---|
committer | Marek Polacek <polacek@redhat.com> | 2023-07-26 13:09:20 -0400 |
commit | 5bd02d910e990c723a5914a64621a1ac89bc5257 (patch) | |
tree | b68b283a12f48161e11be31d294c16f9856ca638 /gcc/function-abi.cc | |
parent | 51b997ea1d07465cb0208c711975b545872a2d2b (diff) | |
download | gcc-5bd02d910e990c723a5914a64621a1ac89bc5257.zip gcc-5bd02d910e990c723a5914a64621a1ac89bc5257.tar.gz gcc-5bd02d910e990c723a5914a64621a1ac89bc5257.tar.bz2 |
c++: cp_parser_constant_expression cleanups
It's pointless to call *_rvalue_constant_expression when we're not using
the result. Also apply some drive-by cleanups.
gcc/cp/ChangeLog:
* parser.cc (cp_parser_constant_expression): Allow non_constant_p to be
nullptr even when allow_non_constant_p is true. Don't call
_rvalue_constant_expression when not necessary. Move local variable
declarations closer to their first use.
(cp_parser_static_assert): Don't pass a dummy down to
cp_parser_constant_expression.
Diffstat (limited to 'gcc/function-abi.cc')
0 files changed, 0 insertions, 0 deletions