aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2021-11-29 11:11:54 +0100
committerGitHub <noreply@github.com>2021-11-29 11:11:54 +0100
commite1420c66a4c76794bfe0b43425d6540bdcbe8e22 (patch)
tree29928032e1dc8b110de32ee42c0dd2c0845676b8 /src
parentddf4fb750d485bf4deb879e69c02ed6fe75b949b (diff)
parent90d8178009381fe7ad6f0380127df2bc5a0d1dc9 (diff)
Merge pull request #5680 from andir/libexpr-dont-move-primop-args
Don't move the arguments of the primOp
Diffstat (limited to 'src')
-rw-r--r--src/libexpr/primops.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libexpr/primops.cc b/src/libexpr/primops.cc
index c0d59da8c..d1f4d9009 100644
--- a/src/libexpr/primops.cc
+++ b/src/libexpr/primops.cc
@@ -3732,7 +3732,7 @@ void EvalState::createBaseEnv()
.fun = primOp.fun,
.arity = std::max(primOp.args.size(), primOp.arity),
.name = symbols.create(primOp.name),
- .args = std::move(primOp.args),
+ .args = primOp.args,
.doc = primOp.doc,
});