diff options
| author | gingerBill <bill@gingerbill.org> | 2020-05-15 17:37:00 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2020-05-15 17:37:00 +0100 |
| commit | ff92eb911271fd9ad3b7c4261897fcf20899918c (patch) | |
| tree | 29f98d87c03b1a32cb96875e916959b3009e8f66 /src/ir.cpp | |
| parent | 8b066b24563a7b2644c1128d267d90f16c7b5a73 (diff) | |
Relative pointers
Diffstat (limited to 'src/ir.cpp')
| -rw-r--r-- | src/ir.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ir.cpp b/src/ir.cpp index e2c9f90ed..2036c94ab 100644 --- a/src/ir.cpp +++ b/src/ir.cpp @@ -20,7 +20,7 @@ struct irModule { PtrSet<Entity *> min_dep_set; Map<irValue *> values; // Key: Entity * - StringMap<irValue *> members; + StringMap<irValue *> members; Map<String> entity_names; // Key: Entity * of the typename Map<irDebugInfo *> debug_info; // Key: Unique pointer Map<irValue *> anonymous_proc_lits; // Key: Ast * @@ -7399,7 +7399,7 @@ irValue *ir_build_expr_internal(irProcedure *proc, Ast *expr) { // HACK TODO(bill): This is hack but it should be safe in virtually all cases irValue *v = ir_typeid(proc->module, tv.type); return ir_emit_conv(proc, v, t_typeid); - } + } if (tv.value.kind != ExactValue_Invalid) { // NOTE(bill): Edge case @@ -11514,7 +11514,7 @@ void ir_setup_type_info_data(irProcedure *proc) { // NOTE(bill): Setup type_info case Basic_f64le: case Basic_f32be: case Basic_f64be: - { + { tag = ir_emit_conv(proc, variant_ptr, t_type_info_float_ptr); // NOTE(bill): This is matches the runtime layout |