wasm: implement missing case
This commit is contained in:
committed by
Andrew Kelley
parent
8299ddfe4f
commit
e2174428e8
@@ -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,
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user