diff options
author | eldritch horrors <pennae@lix.systems> | 2024-06-16 23:10:09 +0200 |
---|---|---|
committer | eldritch horrors <pennae@lix.systems> | 2024-06-17 19:46:44 +0000 |
commit | bcb774688feea4e1fc7919d4890361f4f8ea1f60 (patch) | |
tree | d89d43aed2a58040254f1aa18562f787b439b960 /src/nix | |
parent | ad5366c2ad43216ac9a61ccb1477ff9859d1a75c (diff) |
libexpr: add expr memory management
with the prepatory work done this mostly means turning plain pointers
into unique_ptrs, with all the associated churn that necessitates. we
might want to change some of these to box_ptrs at some point as well,
but that would be a semantic change that isn't fully appropriate yet.
Change-Id: I0c238c118617420650432f4ed45569baa3e3f413
Diffstat (limited to 'src/nix')
-rw-r--r-- | src/nix/flake.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix/flake.cc b/src/nix/flake.cc index d24f746f8..63b250d13 100644 --- a/src/nix/flake.cc +++ b/src/nix/flake.cc @@ -446,7 +446,7 @@ struct CmdFlakeCheck : FlakeCommand if (v.lambda.fun->hasFormals() || !argHasName(v.lambda.fun->arg, "final")) throw Error("overlay does not take an argument named 'final'"); - auto body = dynamic_cast<ExprLambda *>(v.lambda.fun->body); + auto body = dynamic_cast<ExprLambda *>(v.lambda.fun->body.get()); if (!body || body->hasFormals() || !argHasName(body->arg, "prev")) |