summaryrefslogtreecommitdiffstats
path: root/eval
diff options
context:
space:
mode:
authorArne Juul <arnej@yahoo-inc.com>2018-06-20 10:17:42 +0200
committerArne Juul <arnej@yahoo-inc.com>2018-06-20 10:17:42 +0200
commit2915ddaa1c176a47d6c62d3b25bad9bb369c1448 (patch)
tree3706af052360b9ef219d34ebf041d788cb92dd3d /eval
parent44fc1380b66867958f89c47ac8752926b3787a4d (diff)
add and use HDR_ABORT instead
Diffstat (limited to 'eval')
-rw-r--r--eval/src/vespa/eval/eval/basic_nodes.h4
-rw-r--r--eval/src/vespa/eval/tensor/sparse/direct_sparse_tensor_builder.h6
2 files changed, 5 insertions, 5 deletions
diff --git a/eval/src/vespa/eval/eval/basic_nodes.h b/eval/src/vespa/eval/eval/basic_nodes.h
index e6caf052367..95e6cdf34f7 100644
--- a/eval/src/vespa/eval/eval/basic_nodes.h
+++ b/eval/src/vespa/eval/eval/basic_nodes.h
@@ -2,7 +2,7 @@
#pragma once
-#include <vespa/log/log.h>
+#include <vespa/vespalib/util/hdr_abort.h>
#include <vespa/vespalib/stllike/string.h>
#include <vespa/vespalib/util/stringfmt.h>
#include <vespa/vespalib/util/string_hash.h>
@@ -81,7 +81,7 @@ const T *as(const Node &node) { return dynamic_cast<const T *>(&node); }
struct Leaf : public Node {
size_t num_children() const override { return 0; }
const Node &get_child(size_t) const override {
- LOG_ABORT("should not be reached");
+ HDR_ABORT("should not be reached");
}
void detach_children(NodeHandler &) override {}
};
diff --git a/eval/src/vespa/eval/tensor/sparse/direct_sparse_tensor_builder.h b/eval/src/vespa/eval/tensor/sparse/direct_sparse_tensor_builder.h
index 341e443b218..89370458136 100644
--- a/eval/src/vespa/eval/tensor/sparse/direct_sparse_tensor_builder.h
+++ b/eval/src/vespa/eval/tensor/sparse/direct_sparse_tensor_builder.h
@@ -2,7 +2,7 @@
#pragma once
-#include <vespa/log/log.h>
+#include <vespa/vespalib/util/hdr_abort.h>
#include <vespa/eval/tensor/direct_tensor_builder.h>
#include "sparse_tensor.h"
#include "sparse_tensor_address_builder.h"
@@ -106,7 +106,7 @@ public:
void insertCell(SparseTensorAddressRef address, double value) {
// This address should not already exist and a new cell should be inserted.
- insertCell(address, value, [](double, double) -> double { LOG_ABORT("should not be reached"); });
+ insertCell(address, value, [](double, double) -> double { HDR_ABORT("should not be reached"); });
}
template <class Function>
@@ -117,7 +117,7 @@ public:
void insertCell(SparseTensorAddressBuilder &address, double value) {
// This address should not already exist and a new cell should be inserted.
- insertCell(address.getAddressRef(), value, [](double, double) -> double { LOG_ABORT("should not be reached"); });
+ insertCell(address.getAddressRef(), value, [](double, double) -> double { HDR_ABORT("should not be reached"); });
}
eval::ValueType &fast_type() { return _type; }