mirror of
https://github.com/NixOS/nix.git
synced 2025-11-27 12:41:00 +01:00
libexpr: move ExprLet::attrs data to arena as well
I missed this because I assumed all Exprs were recursed into by bindVars, but ExprLet's ExprAttrs field is not really its own AST node, so it doesn't get recursed into.
This commit is contained in:
parent
43a183120a
commit
60f09928d1
1 changed files with 1 additions and 0 deletions
|
|
@ -504,6 +504,7 @@ void ExprCall::bindVars(EvalState & es, const std::shared_ptr<const StaticEnv> &
|
|||
|
||||
void ExprLet::bindVars(EvalState & es, const std::shared_ptr<const StaticEnv> & env)
|
||||
{
|
||||
attrs->moveDataToAllocator(es.mem.exprs.alloc);
|
||||
auto newEnv = [&]() -> std::shared_ptr<const StaticEnv> {
|
||||
auto newEnv = std::make_shared<StaticEnv>(nullptr, env, attrs->attrs->size());
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue