diff options
| author | gingerBill <bill@gingerbill.org> | 2020-12-17 17:36:59 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2020-12-17 17:36:59 +0000 |
| commit | 3558848da818dc330d139ff5d756bb9b9498b1d4 (patch) | |
| tree | e610f06a230cca9d89bf075ec55e520dae83ad8e /src/ir_print.cpp | |
| parent | 720f2c7c61ddfc79deba2bb29b3727b50314cafb (diff) | |
Fix ir_print.cpp for typeid constants
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")); |