Skip to content

Commit

Permalink
feed lref/rrefs into the same member access path as pointers
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanfleury committed Jan 20, 2024
1 parent f3db75a commit f11b128
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/eval/eval_compiler.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand All @@ -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;
}
Expand Down

0 comments on commit f11b128

Please sign in to comment.