summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ir/bits.h3
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");