public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r15-363] [prange] Fix thinko in prange::update_bitmask() [PR115026]
@ 2024-05-10 14:57 Aldy Hernandez
  0 siblings, 0 replies; only message in thread
From: Aldy Hernandez @ 2024-05-10 14:57 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:cbd420a1c3e2bb549dc83b53cc9a31aa6b23952c

commit r15-363-gcbd420a1c3e2bb549dc83b53cc9a31aa6b23952c
Author: Aldy Hernandez <aldyh@redhat.com>
Date:   Fri May 10 12:26:49 2024 +0200

    [prange] Fix thinko in prange::update_bitmask() [PR115026]
    
    gcc/ChangeLog:
    
            PR tree-optimization/115026
            * value-range.cc (prange::update_bitmask): Use operand bitmask.

Diff:
---
 gcc/value-range.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/value-range.cc b/gcc/value-range.cc
index 3e1ecf69517c..5bcb2c3f650b 100644
--- a/gcc/value-range.cc
+++ b/gcc/value-range.cc
@@ -686,7 +686,7 @@ prange::update_bitmask (const irange_bitmask &bm)
   // If all the bits are known, this is a singleton.
   if (bm.mask () == 0)
     {
-      set (type (), m_bitmask.value (), m_bitmask.value ());
+      set (type (), bm.value (), bm.value ());
       return;
     }

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

only message in thread, other threads:[~2024-05-10 14:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-10 14:57 [gcc r15-363] [prange] Fix thinko in prange::update_bitmask() [PR115026] 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).