summaryrefslogtreecommitdiffstats
path: root/document
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 /document
parent44fc1380b66867958f89c47ac8752926b3787a4d (diff)
add and use HDR_ABORT instead
Diffstat (limited to 'document')
-rw-r--r--document/src/vespa/document/select/result.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/document/src/vespa/document/select/result.h b/document/src/vespa/document/select/result.h
index 157121b43dd..4e30cb5a8af 100644
--- a/document/src/vespa/document/select/result.h
+++ b/document/src/vespa/document/select/result.h
@@ -20,6 +20,7 @@
#pragma once
#include <assert.h>
+#include <vespa/vespalib/util/hdr_abort.h>
#include <vespa/document/util/printable.h>
namespace document::select {
@@ -49,7 +50,7 @@ public:
return 1u;
if (this == &Result::True)
return 2u;
- assert(false); abort();
+ HDR_ABORT("should not be reached");
}
static const Result &fromEnum(uint32_t val) {
@@ -59,7 +60,7 @@ public:
return Result::False;
if (val == 2u)
return Result::True;
- assert(false); abort();
+ HDR_ABORT("should not be reached");
}
private: