Commit d9d3eaab by Ian Lance Taylor Committed by Ian Lance Taylor

* verify-impl.c (verify_instructions_0): Add cast to enum type.

From-SVN: r146446
parent 8fa2df72
2009-04-18 Ian Lance Taylor <iant@google.com>
* verify-impl.c (verify_instructions_0): Add cast to enum type.
2009-04-09 Paolo Bonzini <bonzini@gnu.org> 2009-04-09 Paolo Bonzini <bonzini@gnu.org>
* builtins.c (compareAndSwapLong_builtin, * builtins.c (compareAndSwapLong_builtin,
......
/* Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2008 /* Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2008, 2009
Free Software Foundation Free Software Foundation
This file is part of libgcj. This file is part of libgcj.
...@@ -3025,13 +3025,15 @@ verify_instructions_0 (void) ...@@ -3025,13 +3025,15 @@ verify_instructions_0 (void)
case op_newarray: case op_newarray:
{ {
int atype = get_byte (); int atype = get_byte ();
vfy_jclass k;
type t; type t;
/* We intentionally have chosen constants to make this /* We intentionally have chosen constants to make this
valid. */ valid. */
if (atype < boolean_type || atype > long_type) if (atype < boolean_type || atype > long_type)
verify_fail_pc ("type not primitive", vfr->start_PC); verify_fail_pc ("type not primitive", vfr->start_PC);
pop_type (int_type); pop_type (int_type);
init_type_from_class (&t, construct_primitive_array_type (atype)); k = construct_primitive_array_type ((type_val) atype);
init_type_from_class (&t, k);
push_type_t (t); push_type_t (t);
} }
break; break;
......
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