From 4d6e9ea2d1796c984e3ebc38d0b6abdf8049941a Mon Sep 17 00:00:00 2001 From: Max Graey Date: Tue, 22 Sep 2020 00:20:34 +0300 Subject: 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. --- src/ir/bits.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') 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"); -- cgit v1.2.3