public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-31] Call set_undefined from irange constructor.
@ 2022-04-29  9:08 Aldy Hernandez
  0 siblings, 0 replies; only message in thread
From: Aldy Hernandez @ 2022-04-29  9:08 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:17dea11cf4388fb2cd8c3894d3ce5583765e71a4

commit r13-31-g17dea11cf4388fb2cd8c3894d3ce5583765e71a4
Author: Aldy Hernandez <aldyh@redhat.com>
Date:   Mon Mar 7 14:49:57 2022 +0100

    Call set_undefined from irange constructor.
    
    Small clean up to use set_undefined instead of duplicating the
    functionality therein.
    
    Tested on x86-64 Linux.
    
    gcc/ChangeLog:
    
            * value-range.h (irange::irange): Use set_undefined.

Diff:
---
 gcc/value-range.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/gcc/value-range.h b/gcc/value-range.h
index fe7795b55a6..b64e02426ca 100644
--- a/gcc/value-range.h
+++ b/gcc/value-range.h
@@ -397,9 +397,8 @@ inline
 irange::irange (tree *base, unsigned nranges)
 {
   m_base = base;
-  m_num_ranges = 0;
   m_max_ranges = nranges;
-  m_kind = VR_UNDEFINED;
+  set_undefined ();
 }
 
 // Constructors for int_range<>.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-04-29  9:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-29  9:08 [gcc r13-31] Call set_undefined from irange constructor Aldy Hernandez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).