]> gcc.gnu.org Git - gcc.git/commit
c++: two-parameter version of cxx_constant_value
authorPatrick Palka <ppalka@redhat.com>
Tue, 13 Sep 2022 14:01:29 +0000 (10:01 -0400)
committerPatrick Palka <ppalka@redhat.com>
Tue, 13 Sep 2022 14:01:29 +0000 (10:01 -0400)
commitfea6ae0e5d82c01680c788c77709076b9288d145
treef4c441d4d42cd01b42d8f8a19ddaeb24cd90f9ce
parent441a4880cba0908e58a102b068095e4ac2bb46cc
c++: two-parameter version of cxx_constant_value

Since some callers need the complain parameter but not the object
parameter, let's introduce and use an overload of cxx_constant_value
that omits the latter.

gcc/cp/ChangeLog:

* cp-tree.h (cxx_constant_value): Define two-parameter version
that omits the object parameter.
* decl.cc (build_explicit_specifier): Omit NULL_TREE object
argument to cxx_constant_value.
* except.cc (build_noexcept_spec): Likewise.
* pt.cc (expand_integer_pack): Likewise.
(fold_targs_r): Likewise.
* semantics.cc (finish_if_stmt_cond): Likewise.
gcc/cp/cp-tree.h
gcc/cp/decl.cc
gcc/cp/except.cc
gcc/cp/pt.cc
gcc/cp/semantics.cc
This page took 0.057871 seconds and 5 git commands to generate.