diff options
author | Alon Zakai <azakai@google.com> | 2022-11-15 14:00:06 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-15 22:00:06 +0000 |
commit | 41a2f9f394c9bb526c7a3184e571360e3813fb50 (patch) | |
tree | d8ea408ff8e2bf95880c8ad8d3c0afecf8c43e90 /src/wasm/wat-parser.cpp | |
parent | 0ffafa5d4f4bca8a6ab77e193caacc5292218a5d (diff) | |
download | binaryen-41a2f9f394c9bb526c7a3184e571360e3813fb50.tar.gz binaryen-41a2f9f394c9bb526c7a3184e571360e3813fb50.tar.bz2 binaryen-41a2f9f394c9bb526c7a3184e571360e3813fb50.zip |
Fix an unused var warning in some compilers (#5260)
Diffstat (limited to 'src/wasm/wat-parser.cpp')
-rw-r--r-- | src/wasm/wat-parser.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/wasm/wat-parser.cpp b/src/wasm/wat-parser.cpp index f88bc9872..a87a86c3f 100644 --- a/src/wasm/wat-parser.cpp +++ b/src/wasm/wat-parser.cpp @@ -1880,8 +1880,7 @@ struct ParseDefsCtx : TypeParserCtx<ParseDefsCtx> { Result<> makeStructSet(Index pos, HeapType type, Index field) { assert(type.isStruct()); - const auto& fields = type.getStruct().fields; - assert(fields.size() > field); + assert(type.getStruct().fields.size() > field); auto val = pop(pos); CHECK_ERR(val); auto ref = pop(pos); |