diff options
author | Max Graey <maxgraey@gmail.com> | 2020-09-22 00:20:34 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-21 14:20:34 -0700 |
commit | 4d6e9ea2d1796c984e3ebc38d0b6abdf8049941a (patch) | |
tree | c363e5b3bea19832f812212206df2ce82f0a2f9e /src | |
parent | 5eebc8a4d053ed7bcbd88f787cab60b0f246e71d (diff) | |
download | binaryen-4d6e9ea2d1796c984e3ebc38d0b6abdf8049941a.tar.gz binaryen-4d6e9ea2d1796c984e3ebc38d0b6abdf8049941a.tar.bz2 binaryen-4d6e9ea2d1796c984e3ebc38d0b6abdf8049941a.zip |
Fix i64 type checking in getMaxBitsForLocal of DummyLocalInfoProvider (#3150)
The problem existed for a very long time, but since the DummyLocalInfoProvider
is almost never used, this did not create problems.
Diffstat (limited to 'src')
-rw-r--r-- | src/ir/bits.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ir/bits.h b/src/ir/bits.h index 132f7ec4d..4a20e5753 100644 --- a/src/ir/bits.h +++ b/src/ir/bits.h @@ -113,8 +113,7 @@ struct DummyLocalInfoProvider { Index getMaxBitsForLocal(LocalGet* get) { if (get->type == Type::i32) { return 32; - } - if (get->type == Type::i32) { + } else if (get->type == Type::i64) { return 64; } WASM_UNREACHABLE("type has no integer bit size"); |