diff options
author | Alon Zakai <azakai@google.com> | 2022-10-20 10:19:23 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-20 10:19:23 -0700 |
commit | b86c2b749417b671e3758032b77edb070ef05afd (patch) | |
tree | 9b6825fc5966c8e4838e391c76df489aaf9328b1 /src | |
parent | 33dc51d3d7bc49b0633819550d81abe05a434cd9 (diff) | |
download | binaryen-b86c2b749417b671e3758032b77edb070ef05afd.tar.gz binaryen-b86c2b749417b671e3758032b77edb070ef05afd.tar.bz2 binaryen-b86c2b749417b671e3758032b77edb070ef05afd.zip |
[NFC] Add nullptr init for ElementSegment offset (#5168)
I believe all locations that create one already set it (or else we'd see errors), but it's not
easy to see that when reading the code. And other similar locations (like DataSegment)
do initialize to null, so do so for consistency.
Diffstat (limited to 'src')
-rw-r--r-- | src/wasm.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wasm.h b/src/wasm.h index d20fe8bd5..46b5040c2 100644 --- a/src/wasm.h +++ b/src/wasm.h @@ -2017,7 +2017,7 @@ public: class ElementSegment : public Named { public: Name table; - Expression* offset; + Expression* offset = nullptr; Type type = Type(HeapType::func, Nullable); std::vector<Expression*> data; |