clear sites from dead value in removeBuddy

This commit is contained in:
Joel Dice 2008-12-15 18:21:01 -07:00
parent 8819d01522
commit a40ae85588

View File

@ -2918,6 +2918,10 @@ removeBuddy(Context* c, Value* v)
if (not live(next)) {
clearSites(c, next);
}
if (not live(v)) {
clearSites(c, v);
}
}
}
@ -3788,6 +3792,8 @@ populateSiteTables(Context* c, Event* e)
void
setSites(Context* c, Event* e, Value* v, Site* s, unsigned size)
{
assert(c, live(v));
for (; s; s = s->next) {
addSite(c, e->stackBefore, e->localsBefore, size, v, s->copy(c));
}