From f11b128a07e251fa8f65e017f72d2e575007a6d4 Mon Sep 17 00:00:00 2001 From: Ryan Fleury Date: Sat, 20 Jan 2024 09:40:43 -0800 Subject: [PATCH] feed lref/rrefs into the same member access path as pointers --- src/eval/eval_compiler.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/eval/eval_compiler.c b/src/eval/eval_compiler.c index 82b7f0f8..fc79ece2 100644 --- a/src/eval/eval_compiler.c +++ b/src/eval/eval_compiler.c @@ -887,7 +887,7 @@ eval_irtree_and_type_from_expr(Arena *arena, TG_Graph *graph, RADDBG_Parsed *rdb // determine which type to use TG_Key check_type_key = l_restype; TG_Kind check_type_kind = l_restype_kind; - if (l_restype_kind == TG_Kind_Ptr){ + if (l_restype_kind == TG_Kind_Ptr || l_restype_kind == TG_Kind_LRef || l_restype_kind == TG_Kind_RRef){ check_type_key = tg_direct_from_graph_raddbg_key(graph, rdbg, l_restype); check_type_kind = tg_kind_from_key(check_type_key); } @@ -912,7 +912,7 @@ eval_irtree_and_type_from_expr(Arena *arena, TG_Graph *graph, RADDBG_Parsed *rdb // determine how to treat left B32 l_good = 0; - if (l_restype_kind == TG_Kind_Ptr){ + if (l_restype_kind == TG_Kind_Ptr || l_restype_kind == TG_Kind_LRef || l_restype_kind == TG_Kind_RRef){ l_good = 1; l_resolve = 1; }