diff options
| author | Ginger Bill <bill@gingerbill.org> | 2017-08-28 23:04:48 +0100 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2017-08-28 23:04:48 +0100 |
| commit | 1e3b3c107ca76ef57460dc1b010efcf6c03b8cd7 (patch) | |
| tree | 964eb2d21cd45d42be01bba559a9fb73b82d7e8e /core/fmt.odin | |
| parent | 2ac33285c13f40799d789f43feb739a1ee3c26b1 (diff) | |
IR Fix for UnionTagValue
Diffstat (limited to 'core/fmt.odin')
| -rw-r--r-- | core/fmt.odin | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/core/fmt.odin b/core/fmt.odin index f962b8a95..f7cd7e31f 100644 --- a/core/fmt.odin +++ b/core/fmt.odin @@ -174,7 +174,10 @@ fprint_type :: proc(fd: os.Handle, info: ^Type_Info) { } write_type :: proc(buf: ^String_Buffer, ti: ^Type_Info) { - if ti == nil do return; + if ti == nil { + write_string(buf, "nil"); + return; + } using Type_Info; match info in ti.variant { @@ -324,7 +327,6 @@ write_type :: proc(buf: ^String_Buffer, ti: ^Type_Info) { write_int(buf, i64(info.bits[i]), 10); } write_string(buf, "}"); - } } |