mirror of
https://github.com/NixOS/nix
synced 2025-06-25 06:31:14 +02:00
functionArgs: Allocate bools only once
This commit is contained in:
parent
8c6e0df45f
commit
1fcdd1640e
3 changed files with 9 additions and 2 deletions
|
@ -937,6 +937,9 @@ ListBuilder::ListBuilder(EvalState & state, size_t size)
|
|||
state.nrListElems += size;
|
||||
}
|
||||
|
||||
Value * EvalState::getBool(bool b) {
|
||||
return b ? &vTrue : &vFalse;
|
||||
}
|
||||
|
||||
unsigned long nrThunks = 0;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue