diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/wasm.h | 4 | ||||
-rw-r--r-- | src/wasm/wasm-binary.cpp | 6 |
2 files changed, 2 insertions, 8 deletions
diff --git a/src/wasm.h b/src/wasm.h index 268611f34..e673a4c71 100644 --- a/src/wasm.h +++ b/src/wasm.h @@ -876,7 +876,7 @@ public: Load(MixedArena& allocator) {} uint8_t bytes; - bool signed_; + bool signed_ = false; Address offset; Address align; bool isAtomic; @@ -1335,7 +1335,7 @@ public: I31Get(MixedArena& allocator) {} Expression* i31; - bool signed_; + bool signed_ = false; void finalize(); }; diff --git a/src/wasm/wasm-binary.cpp b/src/wasm/wasm-binary.cpp index f58c4f783..ae0e24759 100644 --- a/src/wasm/wasm-binary.cpp +++ b/src/wasm/wasm-binary.cpp @@ -4041,12 +4041,6 @@ bool WasmBinaryBuilder::maybeVisitLoad(Expression*& out, Load* curr; auto allocate = [&]() { curr = allocator.alloc<Load>(); - // The signed field does not matter in some cases (where the size of the - // load is equal to the size of the type, in which case we do not extend), - // but give it a default value nonetheless, to make hashing and other code - // simpler, so that they do not need to consider whether the sign matters or - // not. - curr->signed_ = false; }; if (!isAtomic) { switch (code) { |