From: Ivo Raisr Date: Thu, 28 Sep 2017 19:06:25 +0000 (+0200) Subject: Fix missing breaks in merge_vreg_states(). X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1379be41279c4d87a514644a50a0878c5f4e4edd;p=thirdparty%2Fvalgrind.git Fix missing breaks in merge_vreg_states(). --- diff --git a/VEX/priv/host_generic_reg_alloc3.c b/VEX/priv/host_generic_reg_alloc3.c index 92b44f8a8a..899fefe5bf 100644 --- a/VEX/priv/host_generic_reg_alloc3.c +++ b/VEX/priv/host_generic_reg_alloc3.c @@ -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);