diff options
Diffstat (limited to 'src/wasm-features.h')
-rw-r--r-- | src/wasm-features.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/wasm-features.h b/src/wasm-features.h index 6c58f1642..a1e7a321d 100644 --- a/src/wasm-features.h +++ b/src/wasm-features.h @@ -77,14 +77,14 @@ struct FeatureSet { template<typename F> void iterFeatures(F f) { if (hasAtomics()) f(Atomics); + if (hasBulkMemory()) f(BulkMemory); if (hasMutableGlobals()) f(MutableGlobals); if (hasTruncSat()) f(TruncSat); - if (hasSIMD()) f(SIMD); - if (hasBulkMemory()) f(BulkMemory); if (hasSignExt()) f(SignExt); + if (hasSIMD()) f(SIMD); } - bool operator<=(const FeatureSet& other) { + bool operator<=(const FeatureSet& other) const { return !(features & ~other.features); } |