diff options
| author | DanielGavin <danielgavin5@hotmail.com> | 2020-12-18 14:19:03 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-12-18 14:19:03 +0100 |
| commit | bd6ead32f8d05a9662c7fa6fde867b71da0e79c9 (patch) | |
| tree | e610f06a230cca9d89bf075ec55e520dae83ad8e /src/ir_print.cpp | |
| parent | 934809397f1f5f567c0ec668de72d2ac28e85f74 (diff) | |
| parent | 3558848da818dc330d139ff5d756bb9b9498b1d4 (diff) | |
Merge pull request #1 from odin-lang/master
update from master
Diffstat (limited to 'src/ir_print.cpp')
| -rw-r--r-- | src/ir_print.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ir_print.cpp b/src/ir_print.cpp index a58ddbe0f..594cc57c2 100644 --- a/src/ir_print.cpp +++ b/src/ir_print.cpp @@ -787,6 +787,11 @@ void ir_print_exact_value(irFileBuffer *f, irModule *m, ExactValue value, Type * } switch (value.kind) { + case ExactValue_Typeid: + GB_ASSERT(is_type_typeid(type)); + ir_write_u64(f, ir_typeid_as_integer(m, value.value_typeid)); + break; + case ExactValue_Bool: if (value.value_bool) { ir_write_string(f, are_types_identical(type, t_llvm_bool) ? str_lit("true") : str_lit("1")); |