aboutsummaryrefslogtreecommitdiffstats
path: root/executor/executor.cc
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2020-06-25 21:29:13 +0200
committerDmitry Vyukov <dvyukov@google.com>2020-06-25 21:29:13 +0200
commitf9147b0836f6cd4196dbc25509e8763435cc857a (patch)
tree63dd0f76c7c95f54ba932004460337ae3a4c7e39 /executor/executor.cc
parentac40b8cc849c3f4663295a1cc4d0a88fc400f5ef (diff)
executor: don't use static_assert
Use existing way of doing size checks, otherwise akaros build is broken: https://github.com/google/syzkaller/pull/1868/checks?check_run_id=808613616
Diffstat (limited to 'executor/executor.cc')
-rw-r--r--executor/executor.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/executor/executor.cc b/executor/executor.cc
index 1a2b641ff..2ce50661d 100644
--- a/executor/executor.cc
+++ b/executor/executor.cc
@@ -284,7 +284,7 @@ struct kcov_comparison_t {
bool operator<(const struct kcov_comparison_t& other) const;
};
-static_assert(sizeof(kcov_comparison_t) == 4 * sizeof(uint64), "invalid size of kcov_comparison_t");
+typedef char kcov_comparison_size[sizeof(kcov_comparison_t) == 4 * sizeof(uint64) ? 1 : -1];
struct feature_t {
const char* name;