Skip to content

LLM inference in C/C++

C++ ggml

jinja : fix compile error (#29468)

Sigbjørn Skjæret86a24a182bd3
diff --git a/common/jinja/parser.cpp b/common/jinja/parser.cpp
index 4ad5bb9702..67dcafe17f 100644
--- a/common/jinja/parser.cpp
+++ b/common/jinja/parser.cpp
@@ -435,7 +435,7 @@ private:
(is(token::identifier) && !is_identifier("and") && !is_identifier("or") && !is_identifier("else"))) {
size_t call_pos = current;
statements args;
- args.push_back(std::move(parse_unary_expression()));
+ args.push_back(parse_unary_expression());
test_id = mk_stmt<call_expression>(call_pos, std::move(test_id), std::move(args));
}
operand = mk_stmt<test_expression>(start_pos, std::move(operand), negate, std::move(test_id));