mirror of
https://github.com/NixOS/nix.git
synced 2025-11-18 16:29:36 +01:00
libexpr: store ExprLambda data in Expr::alloc
This commit is contained in:
parent
4a2fb18ba0
commit
3a3c062982
10 changed files with 88 additions and 61 deletions
|
|
@ -3368,7 +3368,7 @@ static void prim_functionArgs(EvalState & state, const PosIdx pos, Value ** args
|
|||
return;
|
||||
}
|
||||
|
||||
const auto & formals = args[0]->lambda().fun->formals->formals;
|
||||
const auto & formals = args[0]->lambda().fun->getFormals();
|
||||
auto attrs = state.buildBindings(formals.size());
|
||||
for (auto & i : formals)
|
||||
attrs.insert(i.name, state.getBool(i.def), i.pos);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue