wasm: implement missing case

This commit is contained in:
Jacob Young
2023-06-01 19:49:57 -04:00
committed by Andrew Kelley
parent 8299ddfe4f
commit e2174428e8

View File

@@ -3320,6 +3320,7 @@ fn valueAsI32(func: *const CodeGen, val: Value, ty: Type) i32 {
.enum_tag => |enum_tag| intIndexAsI32(&mod.intern_pool, enum_tag.int, mod),
.int => |int| intStorageAsI32(int.storage, mod),
.ptr => |ptr| intIndexAsI32(&mod.intern_pool, ptr.addr.int, mod),
.err => |err| @bitCast(i32, mod.global_error_set.get(mod.intern_pool.stringToSlice(err.name)).?),
else => unreachable,
},
}