aboutsummaryrefslogtreecommitdiffstats
path: root/searchlib
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2024-03-02 21:46:30 +0100
committerGitHub <noreply@github.com>2024-03-02 21:46:30 +0100
commitf2a07ffd3ab0732c5bb63df7610c40ad6ff54b74 (patch)
tree3b6e23103815d0d86218ec4cc363c2f7b952aac1 /searchlib
parent6bd94fdeefbf16d362460b5d3de9b99c67dfc122 (diff)
parentb1a71b4ffe69c26089fd0d5103aedccf915e777e (diff)
Merge pull request #30458 from vespa-engine/toregge/avoid-bad-alignof-usage
Avoid bad alignof usage.
Diffstat (limited to 'searchlib')
-rw-r--r--searchlib/src/vespa/searchlib/queryeval/flow.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/searchlib/src/vespa/searchlib/queryeval/flow.h b/searchlib/src/vespa/searchlib/queryeval/flow.h
index 785a4c5e63c..ba0235991a8 100644
--- a/searchlib/src/vespa/searchlib/queryeval/flow.h
+++ b/searchlib/src/vespa/searchlib/queryeval/flow.h
@@ -391,7 +391,7 @@ private:
template <typename FLOW> struct type_tag{};
template <typename FLOW> AnyFlow(InFlow in_flow, type_tag<FLOW>) noexcept {
using stored_type = Wrapper<FLOW>;
- static_assert(alignof(stored_type) <= alignof(_space));
+ static_assert(alignof(stored_type) <= 8);
static_assert(sizeof(stored_type) <= sizeof(_space));
API *upcasted = ::new (static_cast<void*>(_space)) stored_type(in_flow);
(void) upcasted;