From ff92eb911271fd9ad3b7c4261897fcf20899918c Mon Sep 17 00:00:00 2001 From: gingerBill Date: Fri, 15 May 2020 17:37:00 +0100 Subject: Relative pointers --- src/ir.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/ir.cpp') 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 min_dep_set; Map values; // Key: Entity * - StringMap members; + StringMap members; Map entity_names; // Key: Entity * of the typename Map debug_info; // Key: Unique pointer Map 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 -- cgit v1.2.3