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