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

commit r15-363-gcbd420a1c3e2bb549dc83b53cc9a31aa6b23952c
Author: Aldy Hernandez <al...@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;
     }

Reply via email to