Commit 6466fce8 by Per Bothner

jcf-write.c (generate_bytecode_insns): Don't free sw_state.cases.

�
	* 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
parent 10100cc7
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment