projects
/
platform
/
upstream
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
71f2928
)
Call set_undefined from irange constructor.
author
Aldy Hernandez
<aldyh@redhat.com>
Mon, 7 Mar 2022 13:49:57 +0000
(14:49 +0100)
committer
Aldy Hernandez
<aldyh@redhat.com>
Fri, 29 Apr 2022 08:41:59 +0000
(10:41 +0200)
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.
gcc/value-range.h
patch
|
blob
|
history
diff --git
a/gcc/value-range.h
b/gcc/value-range.h
index
fe7795b
..
b64e024
100644
(file)
--- 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<>.