Switch Frame::SetElement() to use IntrusivePtr

This commit is contained in:
Jon Siwek 2020-05-23 00:47:52 -07:00
parent 1c617c4f7a
commit e9e2e388f8
5 changed files with 78 additions and 60 deletions

View file

@ -273,7 +273,7 @@ void NameExpr::Assign(Frame* f, IntrusivePtr<Val> v)
if ( id->IsGlobal() )
id->SetVal(std::move(v));
else
f->SetElement(id.get(), v.release());
f->SetElement(id.get(), std::move(v));
}
bool NameExpr::IsPure() const