diff options
author | Thomas Lively <7121787+tlively@users.noreply.github.com> | 2020-05-04 16:21:35 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-04 16:21:35 -0700 |
commit | 9d68b0cf137804003ab2cd58449dba2cb82b10e2 (patch) | |
tree | 2c7596834162dd34ef686c2ab2375358886545de /src/wasm-features.h | |
parent | c0eb93567e278fe86a6fd8fb0002db5984db1a84 (diff) | |
download | binaryen-9d68b0cf137804003ab2cd58449dba2cb82b10e2.tar.gz binaryen-9d68b0cf137804003ab2cd58449dba2cb82b10e2.tar.bz2 binaryen-9d68b0cf137804003ab2cd58449dba2cb82b10e2.zip |
Remove `constexpr` that causes GCC build to fail (#2828)
GCC complains that the enclosing class of the constexpr member
function is not a literal type. This change removes the constexpr
qualifier to fix the GCC build.
Fixes #2827.
Diffstat (limited to 'src/wasm-features.h')
-rw-r--r-- | src/wasm-features.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wasm-features.h b/src/wasm-features.h index c77d0a1e6..c35ff0442 100644 --- a/src/wasm-features.h +++ b/src/wasm-features.h @@ -68,7 +68,7 @@ struct FeatureSet { FeatureSet() : features(MVP) {} FeatureSet(uint32_t features) : features(features) {} - constexpr operator uint32_t() const { return features; } + operator uint32_t() const { return features; } bool isMVP() const { return features == MVP; } bool has(FeatureSet f) { return (features & f) == f; } |