mirror of
https://github.com/NixOS/nix
synced 2025-06-25 14:51:16 +02:00
Merge pull request #9681 from edolstra/eval-optimisations
Optimize empty list constants
This commit is contained in:
commit
315aade89d
3 changed files with 17 additions and 0 deletions
|
@ -303,6 +303,7 @@ struct ExprList : Expr
|
|||
std::vector<Expr *> elems;
|
||||
ExprList() { };
|
||||
COMMON_METHODS
|
||||
Value * maybeThunk(EvalState & state, Env & env) override;
|
||||
|
||||
PosIdx getPos() const override
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue