Signed-off-by: Tomek Grabiec <tgrab...@gmail.com>
---
 jit/switch-bc.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/jit/switch-bc.c b/jit/switch-bc.c
index 0a5d3e5..bbcd582 100644
--- a/jit/switch-bc.c
+++ b/jit/switch-bc.c
@@ -133,6 +133,7 @@ int convert_tableswitch(struct parse_context *ctx)
        if (!if_lesser_stmt)
                goto fail_lesser_stmt;
 
+       expr_get(pure_index);
        if_greater_stmt =
                branch_if_greater_stmt(default_bb, pure_index, info.high);
        if (!if_greater_stmt)
@@ -142,6 +143,7 @@ int convert_tableswitch(struct parse_context *ctx)
        if (!stmt)
                goto fail_stmt;
 
+       expr_get(pure_index);
        stmt->index = &pure_index->node;
        stmt->table = table;
 
@@ -223,6 +225,7 @@ int convert_lookupswitch(struct parse_context *ctx)
        if (!stmt)
                goto fail_stmt;
 
+       expr_get(pure_bsearch);
        stmt->lookupswitch_target = &pure_bsearch->node;
 
        convert_statement(ctx, if_null_stmt);
-- 
1.6.0.6


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Jatovm-devel mailing list
Jatovm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jatovm-devel

Reply via email to