aboutsummaryrefslogtreecommitdiffstats
path: root/eval/src
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@online.no>2023-06-06 18:21:29 +0200
committerTor Egge <Tor.Egge@online.no>2023-06-06 18:21:29 +0200
commitd9591fe9a749c4cc61279ee4a5f8fb70d1f2ca29 (patch)
tree8904884f08331e1d5945f04ceaff2833f6b8ebec /eval/src
parentf2bf23e6beb8e5c7fb1de7c01a0e533002033b9f (diff)
Eliminate inline warning in dense multi matmul function unit test.
Diffstat (limited to 'eval/src')
-rw-r--r--eval/src/tests/instruction/dense_multi_matmul_function/dense_multi_matmul_function_test.cpp4
-rw-r--r--eval/src/vespa/eval/eval/test/cell_type_space.h2
2 files changed, 4 insertions, 2 deletions
diff --git a/eval/src/tests/instruction/dense_multi_matmul_function/dense_multi_matmul_function_test.cpp b/eval/src/tests/instruction/dense_multi_matmul_function/dense_multi_matmul_function_test.cpp
index 8ee0ba90af9..0d171fa0668 100644
--- a/eval/src/tests/instruction/dense_multi_matmul_function/dense_multi_matmul_function_test.cpp
+++ b/eval/src/tests/instruction/dense_multi_matmul_function/dense_multi_matmul_function_test.cpp
@@ -42,8 +42,8 @@ void verify_optimized(const vespalib::string &expr, const FunInfo &details)
CellTypeSpace stable_types(CellTypeUtils::list_stable_types(), 2);
CellTypeSpace unstable_types(CellTypeUtils::list_unstable_types(), 2);
EvalFixture::verify<FunInfo>(expr, {details}, CellTypeSpace(stable_types).same());
- EvalFixture::verify<FunInfo>(expr, {}, CellTypeSpace(stable_types).different());
- EvalFixture::verify<FunInfo>(expr, {}, unstable_types);
+ EvalFixture::verify<FunInfo>(expr, {}, CellTypeSpace(std::move(stable_types)).different());
+ EvalFixture::verify<FunInfo>(expr, {}, std::move(unstable_types));
}
void verify_not_optimized(const vespalib::string &expr) {
diff --git a/eval/src/vespa/eval/eval/test/cell_type_space.h b/eval/src/vespa/eval/eval/test/cell_type_space.h
index e4ab26c2f91..3f8abfe5936 100644
--- a/eval/src/vespa/eval/eval/test/cell_type_space.h
+++ b/eval/src/vespa/eval/eval/test/cell_type_space.h
@@ -36,6 +36,8 @@ public:
assert(n > 0);
skip_unwanted();
}
+ CellTypeSpace(const CellTypeSpace& rhs) = default;
+ CellTypeSpace(CellTypeSpace&& rhs) noexcept = default;
~CellTypeSpace();
CellTypeSpace &same() {
_drop_different = true;