diff options
author | Thomas Lively <7121787+tlively@users.noreply.github.com> | 2022-05-27 16:58:24 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-27 16:58:24 -0700 |
commit | 838de5c4f374396a15d5700ebb51c3e0a89b5840 (patch) | |
tree | 1969623c389959f8341637e58130d5dae8c50be6 /src/tools/wasm-emscripten-finalize.cpp | |
parent | 410b7c92ea2e36b6a938fc34b4fd11e2eeea9fb3 (diff) | |
download | binaryen-838de5c4f374396a15d5700ebb51c3e0a89b5840.tar.gz binaryen-838de5c4f374396a15d5700ebb51c3e0a89b5840.tar.bz2 binaryen-838de5c4f374396a15d5700ebb51c3e0a89b5840.zip |
[Parser] Replace Signedness with ternary Sign (#4698)
Previously we were tracking whether integer tokens were signed but we did not
differentiate between positive and negative signs. Unfortunately, without
differentiating them, there's no way to tell the difference between an in-bounds
negative integer and a wildly out-of-bounds positive integer when trying to
perform bounds checks for s32 tokens. Fix the problem by tracking not only
whether there is a sign on an integer token, but also what the sign is.
Diffstat (limited to 'src/tools/wasm-emscripten-finalize.cpp')
0 files changed, 0 insertions, 0 deletions