Commit c353d6a4 by Jeff Sturm Committed by Jeff Sturm

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
parent 6b98580b
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> 2003-12-01 Kim Ho <kho@redhat.com>
* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c (create): * jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextAreaPeer.c (create):
......
...@@ -1010,6 +1010,7 @@ private: ...@@ -1010,6 +1010,7 @@ private:
_Jv_Free (info); _Jv_Free (info);
info = next; info = next;
} }
seen_subrs = NULL;
} }
void copy (const state *copy, int max_stack, int max_locals, void copy (const state *copy, int max_stack, int max_locals,
...@@ -1035,11 +1036,10 @@ private: ...@@ -1035,11 +1036,10 @@ private:
clean_subrs (); clean_subrs ();
if (copy->seen_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); add_subr (info->pc);
} }
else
seen_subrs = NULL;
this_type = copy->this_type; this_type = copy->this_type;
// Don't modify `next'. // Don't modify `next'.
......
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