Commit 6420fb77 by Tom Tromey Committed by Tom Tromey

verify-impl.c (verify_instructions_0): Special case for Object.<init>.

	* verify-impl.c (verify_instructions_0) <op_return>: Special case
	for Object.<init>.

From-SVN: r113830
parent 48b06e94
2006-05-16 Tom Tromey <tromey@redhat.com>
* verify-impl.c (verify_instructions_0) <op_return>: Special case
for Object.<init>.
2006-05-16 H.J. Lu <hongjiu.lu@intel.com> 2006-05-16 H.J. Lu <hongjiu.lu@intel.com>
PR driver/26885 PR driver/26885
......
/* Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation /* Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation
This file is part of libgcj. This file is part of libgcj.
...@@ -2887,9 +2887,11 @@ verify_instructions_0 (void) ...@@ -2887,9 +2887,11 @@ verify_instructions_0 (void)
invalidate_pc (); invalidate_pc ();
break; break;
case op_return: case op_return:
/* We only need to check this when the return type is /* We only need to check this when the return type is void,
void, because all instance initializers return void. */ because all instance initializers return void. We also
if (this_is_init) need to special-case Object constructors, as they can't
call a superclass <init>. */
if (this_is_init && vfr->current_class != vfy_object_type ())
state_check_this_initialized (vfr->current_state); state_check_this_initialized (vfr->current_state);
check_return_type (make_type (void_type)); check_return_type (make_type (void_type));
invalidate_pc (); invalidate_pc ();
......
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