Merge pull request #5680 from andir/libexpr-dont-move-primop-args

Don't move the arguments of the primOp
This commit is contained in:
Eelco Dolstra
2021-11-29 11:11:54 +01:00
committed by GitHub
+1 -1
View File
@@ -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,
});