refactor(3p/tvix): convert NixList usage to shared_ptr

Starting to reclaim memory. Fairly simple mechanical replacement.

Change-Id: I6b4c5c5596729470d1a049eba61e69e8097decf4
Reviewed-on: https://cl.tvl.fyi/c/depot/+/1971
Tested-by: BuildkiteCI
Reviewed-by: glittershark <grfn@gws.fyi>
This commit is contained in:
Kane York 2020-09-12 08:09:18 -07:00 committed by kanepyork
parent 381ce8a666
commit 2c19bd6662
4 changed files with 12 additions and 12 deletions

View file

@ -258,7 +258,7 @@ class EvalState {
Value* allocAttr(Value& vAttrs, const Symbol& name);
// Create a list value from the specified vector.
void mkList(Value& v, NixList* list);
void mkList(Value& v, std::shared_ptr<NixList> list);
// Create a list value, allocating as many elements as specified in
// size. This is used for the many cases in this codebase where