Add version of Frame::SetElement() taking IntrusivePtr<ID>

Expect the version using raw ID* could go away eventually, but this is
convenience for the meantime.
This commit is contained in:
Jon Siwek 2020-05-27 17:30:28 -07:00
parent 2cee468eac
commit 0d19e8fb4c
3 changed files with 5 additions and 3 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(), std::move(v));
f->SetElement(id, std::move(v));
}
bool NameExpr::IsPure() const