verify.cc (state::clean_subrs): Clear seen_subrs.

* verify.cc (state::clean_subrs): Clear seen_subrs.
(state::copy): Walk seen_subrs from copy, not `this'.
Don't clear seen_subrs.

From-SVN: r74152
This commit is contained in:
Jeff Sturm 2003-12-02 03:42:40 +00:00 committed by Jeff Sturm
parent 6b98580b89
commit c353d6a488
2 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,9 @@
2003-12-01 Jeff Sturm <jsturm@one-point.com>
* verify.cc (state::clean_subrs): Clear seen_subrs.
(state::copy): Walk seen_subrs from copy, not `this'.
Don't clear seen_subrs.
2003-12-01 Kim Ho <kho@redhat.com>
* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c (create):

View File

@ -1010,6 +1010,7 @@ private:
_Jv_Free (info);
info = next;
}
seen_subrs = NULL;
}
void copy (const state *copy, int max_stack, int max_locals,
@ -1035,11 +1036,10 @@ private:
clean_subrs ();
if (copy->seen_subrs)
{
for (subr_info *info = seen_subrs; info != NULL; info = info->next)
for (subr_info *info = copy->seen_subrs;
info != NULL; info = info->next)
add_subr (info->pc);
}
else
seen_subrs = NULL;
this_type = copy->this_type;
// Don't modify `next'.