From 6466fce8c91171b28704ae14756b56e07153de86 Mon Sep 17 00:00:00 2001 From: Per Bothner Date: Tue, 24 Nov 1998 05:16:25 -0800 Subject: [PATCH] jcf-write.c (generate_bytecode_insns): Don't free sw_state.cases. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit � * jcf-write.c (generate_bytecode_insns): Don't free sw_state.cases. * jcf-write.c (generate_bytecode_insns): Fix typo OPCODE_getstatic to OPCODE_getfield. From-SVN: r23831 --- gcc/java/jcf-write.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gcc/java/jcf-write.c b/gcc/java/jcf-write.c index c4d5ca16add..c371096bd1b 100644 --- a/gcc/java/jcf-write.c +++ b/gcc/java/jcf-write.c @@ -1555,7 +1555,6 @@ generate_bytecode_insns (exp, target, state) for (; body_block != sw_state.default_label; body_block = body_block->next) body_block->pc += switch_length; - free (sw_state.cases); state->sw_state = sw_state.prev; break; } @@ -1665,7 +1664,7 @@ generate_bytecode_insns (exp, target, state) generate_bytecode_insns (TREE_OPERAND (exp, 0), STACK_TARGET, state); emit_dup (1, 0, state); /* Stack: ..., objectref, objectref. */ - field_op (TREE_OPERAND (exp, 1), OPCODE_getstatic, state); + field_op (TREE_OPERAND (exp, 1), OPCODE_getfield, state); NOTE_PUSH (size); /* Stack: ..., objectref, oldvalue. */ offset = 1;