about summary refs log tree commit diff
path: root/third_party/nix/src/libexpr/value.hh
diff options
context:
space:
mode:
authorKane York <kanepyork@gmail.com>2020-09-12T15·40-0700
committerkanepyork <rikingcoding@gmail.com>2020-09-15T21·52+0000
commitfedbe693b9c0f5ba57fae82e3191efe8a633aa09 (patch)
tree2f8705f9607eeb07d8084e36efcac8d4281a13b3 /third_party/nix/src/libexpr/value.hh
parentd9c7f32a9c8644acef4569509be0de8f1c82ff6c (diff)
refactor(3p/tvix): make Value.primOp a std::shared_ptr r/1794
Change-Id: I04cc42ae62d2ff71b07fde8e3710dcc9b4363a05
Reviewed-on: https://cl.tvl.fyi/c/depot/+/1973
Reviewed-by: glittershark <grfn@gws.fyi>
Tested-by: BuildkiteCI
Diffstat (limited to 'third_party/nix/src/libexpr/value.hh')
-rw-r--r--third_party/nix/src/libexpr/value.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/third_party/nix/src/libexpr/value.hh b/third_party/nix/src/libexpr/value.hh
index 980d9affbb51..82021c77c41b 100644
--- a/third_party/nix/src/libexpr/value.hh
+++ b/third_party/nix/src/libexpr/value.hh
@@ -100,7 +100,7 @@ struct Value {
     NixThunk thunk;
     NixApp app;  // TODO(tazjin): "app"?
     NixLambda lambda;
-    PrimOp* primOp;
+    std::shared_ptr<PrimOp> primOp;
     NixPrimOpApp primOpApp;
     NixFloat fpoint;
   };