]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[prange] Fix thinko in prange::update_bitmask() [PR115026]
authorAldy Hernandez <aldyh@redhat.com>
Fri, 10 May 2024 10:26:49 +0000 (12:26 +0200)
committerAldy Hernandez <aldyh@redhat.com>
Fri, 10 May 2024 14:57:05 +0000 (16:57 +0200)
gcc/ChangeLog:

PR tree-optimization/115026
* value-range.cc (prange::update_bitmask): Use operand bitmask.

gcc/value-range.cc

index 3e1ecf69517cdba92995b18930e1420b6034fe8a..5bcb2c3f650be59bbe6a53d77d2129b6016664cb 100644 (file)
@@ -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;
     }