mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-29 10:50:05 +00:00
IR Fix for UnionTagValue
This commit is contained in:
+4
-2
@@ -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, "}");
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user