aboutsummaryrefslogtreecommitdiffstats
path: root/searchlib/src/tests
diff options
context:
space:
mode:
authorHåvard Pettersen <havardpe@oath.com>2019-12-10 10:58:33 +0000
committerHåvard Pettersen <havardpe@oath.com>2019-12-12 12:05:21 +0000
commit970fa07a1d8ae88dafd5ed35bf1f98fae46af0fb (patch)
tree01615c821781f3d87866ad5c9aa0bce46eabd84f /searchlib/src/tests
parent2de75cc16ce069fd9b36994101e4dd76de693220 (diff)
async concurrent llvm compilation
Diffstat (limited to 'searchlib/src/tests')
-rw-r--r--searchlib/src/tests/features/max_reduce_prod_join_replacer/max_reduce_prod_join_replacer_test.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/searchlib/src/tests/features/max_reduce_prod_join_replacer/max_reduce_prod_join_replacer_test.cpp b/searchlib/src/tests/features/max_reduce_prod_join_replacer/max_reduce_prod_join_replacer_test.cpp
index c9c8124bb94..1d1c03ab56d 100644
--- a/searchlib/src/tests/features/max_reduce_prod_join_replacer/max_reduce_prod_join_replacer_test.cpp
+++ b/searchlib/src/tests/features/max_reduce_prod_join_replacer/max_reduce_prod_join_replacer_test.cpp
@@ -46,11 +46,11 @@ struct MyBlueprint : Blueprint {
bool replaced(const vespalib::string &expr) {
bool was_used = false;
ExpressionReplacer::UP replacer = MaxReduceProdJoinReplacer::create(std::make_unique<MyBlueprint>(was_used));
- Function rank_function = Function::parse(expr, FeatureNameExtractor());
- if (!EXPECT_TRUE(!rank_function.has_error())) {
- fprintf(stderr, "parse error: %s\n", rank_function.dump().c_str());
+ auto rank_function = Function::parse(expr, FeatureNameExtractor());
+ if (!EXPECT_TRUE(!rank_function->has_error())) {
+ fprintf(stderr, "parse error: %s\n", rank_function->dump().c_str());
}
- auto result = replacer->maybe_replace(rank_function, IndexEnvironment());
+ auto result = replacer->maybe_replace(*rank_function, IndexEnvironment());
EXPECT_EQUAL(bool(result), was_used);
return was_used;
}