diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2013-02-05 23:01:48 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2013-02-05 23:01:48 (GMT) |
commit | 3467b0cdb09976faccc6dbef09315cc38dbe6fb5 (patch) | |
tree | 0e1b926be0203d8b95765cd56f7d3714414d89d4 /src/decomp | |
parent | 48e663f21a6429787fec2c426f46024dad9cde08 (diff) |
Rewritten many parts of the process which cut code into basic blocks.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@338 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/decomp')
-rw-r--r-- | src/decomp/instr/switch.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/decomp/instr/switch.c b/src/decomp/instr/switch.c index 4b1662b..b475eae 100644 --- a/src/decomp/instr/switch.c +++ b/src/decomp/instr/switch.c @@ -179,7 +179,7 @@ static bool g_switch_instruction_visit(GSwitchInstruction *instr, dec_instr_visi size_t i; /* Boucle de parcours */ result = true; - return true; + for (i = 0; i < instr->cases_count && result; i++) result = _g_dec_instruction_visit(instr->cases[i].instrs, G_DEC_INSTRUCTION(instr), callback, flags, data); @@ -213,7 +213,7 @@ static bool g_switch_instruction_replace(GSwitchInstruction *instr, GDecInstruct size_t i; /* Boucle de parcours */ result = false; - return false; + for (i = 0; i < instr->cases_count; i++) result |= g_dec_instruction_replace(instr->cases[i].instrs, old, new); |