Removed IR parsing and changed fatal bug of i64s being detected as i32s

Signed-off-by: luccie-cmd <luccie@sideros.org>
This commit is contained in:
luccie-cmd 2025-03-26 17:18:32 +01:00 committed by Ernesto Lanchares
parent 09691ec4d9
commit bfe9fb5e63

View file

@ -140,7 +140,7 @@ fn parseVector(self: *Parser, parse_fn: anytype) ![]VectorFnResult(parse_fn) {
fn parseNumtype(self: *Parser) !std.wasm.Valtype { fn parseNumtype(self: *Parser) !std.wasm.Valtype {
return switch (try self.readByte()) { return switch (try self.readByte()) {
0x7F => .i32, 0x7F => .i32,
0x7E => .i32, 0x7E => .i64,
0x7D => .f32, 0x7D => .f32,
0x7C => .f64, 0x7C => .f64,
else => Error.invalid_numtype, else => Error.invalid_numtype,
@ -462,7 +462,7 @@ fn parseCode(self: *Parser) !Func {
local_count += l.n; local_count += l.n;
} }
_ = try IR.parse(self); // _ = try IR.parse(self);
const func = Func{ const func = Func{
.locals = try self.allocator.alloc(Valtype, local_count), .locals = try self.allocator.alloc(Valtype, local_count),