]> git.ipfire.org Git - thirdparty/gcc.git/commit
Remove default constructor to nan_state.
authorAldy Hernandez <aldyh@redhat.com>
Tue, 25 Apr 2023 08:10:39 +0000 (10:10 +0200)
committerAldy Hernandez <aldyh@redhat.com>
Tue, 25 Apr 2023 10:08:44 +0000 (12:08 +0200)
commita024ac7bca9b9de1d2e0c19d4bb11df293e27a7d
tree1aa37a9941e7ed3a0b206d6de61abc7cc4e6f813
parent3a7bed5e71c0cb74d12e35749da633d818e05cff
Remove default constructor to nan_state.

I think it's best to specify the default behavior of nan_state, since
it's not obvious that nan_state() defaults to TRUE.  Also, this avoids
the ugly nan_state(false, false) idiom.

gcc/ChangeLog:

* value-range.cc (frange::set): Adjust constructor.
* value-range.h (nan_state::nan_state): Replace default
constructor with one taking an argument.
gcc/value-range.cc
gcc/value-range.h