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
commit e1420c66a4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3732,7 +3732,7 @@ void EvalState::createBaseEnv()
.fun = primOp.fun, .fun = primOp.fun,
.arity = std::max(primOp.args.size(), primOp.arity), .arity = std::max(primOp.args.size(), primOp.arity),
.name = symbols.create(primOp.name), .name = symbols.create(primOp.name),
.args = std::move(primOp.args), .args = primOp.args,
.doc = primOp.doc, .doc = primOp.doc,
}); });