]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Fix missing breaks in merge_vreg_states().
authorIvo Raisr <ivosh@ivosh.net>
Thu, 28 Sep 2017 19:06:25 +0000 (21:06 +0200)
committerIvo Raisr <ivosh@ivosh.net>
Thu, 28 Sep 2017 19:06:25 +0000 (21:06 +0200)
VEX/priv/host_generic_reg_alloc3.c

index 92b44f8a8ad19928682c81e9a3cc1f0516f96611..899fefe5bf8223d41291854efff959532d367f40 100644 (file)
@@ -1541,7 +1541,7 @@ static void merge_vreg_states(RegAllocChunk* chunk,
       case Unallocated:
          /* Good. Nothing to do. */
          break;
-      case Assigned:
+      case Assigned: /* fall through */
       case Spilled:
          /* Should be dead by now. */
          vassert(v2_src_state->dead_before <= chunk->next->ii_total_start);
@@ -1603,6 +1603,7 @@ static void merge_vreg_states(RegAllocChunk* chunk,
       case Unallocated:
          vpanic("Logic error during register allocator state merge "
                 " (Spilled/Unallocated).");
+         break;
       case Assigned:
          /* Generate spill. */
          vpanic("Spill not implemented, yet.");
@@ -1615,9 +1616,11 @@ static void merge_vreg_states(RegAllocChunk* chunk,
                spill to v1_dst_state->spill_slot. */
             vpanic("Spilled/Spilled reload not implemented, yet.");
          }
+         break;
       default:
          vassert(0);
       }
+      break;
 
    default:
       vassert(0);