aboutsummaryrefslogtreecommitdiff
path: root/gcc/value-range.cc
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2022-11-01 13:47:24 +0000
committerJonathan Wakely <jwakely@redhat.com>2022-11-02 12:54:16 +0000
commitf4874691812bc20e3d8e3302db439c27f30c472c (patch)
tree99b9be831ea469f73b4e8ea163fde347b07a2f70 /gcc/value-range.cc
parentcf35818a390e7cb4b1a4fa70c243ede59d6cbbac (diff)
downloadgcc-f4874691812bc20e3d8e3302db439c27f30c472c.zip
gcc-f4874691812bc20e3d8e3302db439c27f30c472c.tar.gz
gcc-f4874691812bc20e3d8e3302db439c27f30c472c.tar.bz2
libstdc++: Remove unnecessary variant member in std::expected
Hui Xie pointed out that we don't need a dummy member in the union, because all constructors always initialize either _M_val or _M_unex. We still need the _M_void member of the expected<void, E> specialization, because the constructor has to initialize something when not using the _M_unex member. libstdc++-v3/ChangeLog: * include/std/expected (expected::_M_invalid): Remove.
Diffstat (limited to 'gcc/value-range.cc')
0 files changed, 0 insertions, 0 deletions