aboutsummaryrefslogtreecommitdiff
path: root/libjava/verify.cc
diff options
context:
space:
mode:
authorJeff Sturm <jsturm@one-point.com>2003-12-02 03:42:40 +0000
committerJeff Sturm <jsturm@gcc.gnu.org>2003-12-02 03:42:40 +0000
commitc353d6a4882d3a00ecd0033f72267c123e9e23e0 (patch)
tree992672392208ef7bb52d928c90def87e68a3e71d /libjava/verify.cc
parent6b98580b89fbcfa093f4217e2661d6310ce39577 (diff)
downloadgcc-c353d6a4882d3a00ecd0033f72267c123e9e23e0.zip
gcc-c353d6a4882d3a00ecd0033f72267c123e9e23e0.tar.gz
gcc-c353d6a4882d3a00ecd0033f72267c123e9e23e0.tar.bz2
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
Diffstat (limited to 'libjava/verify.cc')
-rw-r--r--libjava/verify.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/libjava/verify.cc b/libjava/verify.cc
index 34583bd..e085938 100644
--- a/libjava/verify.cc
+++ b/libjava/verify.cc
@@ -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'.