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

commit c6180e10f4ab2d58712512aeb809326b282450dd
Author: Mikael Morin <mik...@gcc.gnu.org>
Date:   Thu Sep 4 17:10:58 2025 +0200

    gimple-simulate: Sauvegarde

Diff:
---
 gcc/gimple-simulate.cc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gcc/gimple-simulate.cc b/gcc/gimple-simulate.cc
index 721d34bea9aa..adf02ed29610 100644
--- a/gcc/gimple-simulate.cc
+++ b/gcc/gimple-simulate.cc
@@ -890,7 +890,8 @@ pick_subref_at (tree var_ref, unsigned min_offset,
          else
            {
              unsigned field_width = get_constant_type_size (field_type);
-             gcc_assert (field_width >= min_size);
+             if (field_width < min_size)
+               break;
            }
 
          ref = build3 (COMPONENT_REF, field_type,

Reply via email to