diff mbox series

[COMMITTED,prange] Fix thinko in prange::update_bitmask() [PR115026]

Message ID 20240510145759.514023-1-aldyh@redhat.com
State New
Headers show
Series [COMMITTED,prange] Fix thinko in prange::update_bitmask() [PR115026] | expand

Commit Message

Aldy Hernandez May 10, 2024, 2:57 p.m. UTC
gcc/ChangeLog:

	PR tree-optimization/115026
	* value-range.cc (prange::update_bitmask): Use operand bitmask.
---
 gcc/value-range.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/gcc/value-range.cc b/gcc/value-range.cc
index 3e1ecf69517..5bcb2c3f650 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;
     }