mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-18 03:42:23 -07:00
Selector Call Expressions: x->y(123) == x.y(x, 123)
This commit is contained in:
@@ -7678,6 +7678,13 @@ irValue *ir_build_expr_internal(irProcedure *proc, Ast *expr) {
|
||||
return ir_add_module_constant(proc->module, tv.type, tv.value);
|
||||
case_end;
|
||||
|
||||
case_ast_node(se, SelectorCallExpr, expr);
|
||||
GB_ASSERT(se->modified_call);
|
||||
TypeAndValue tav = type_and_value_of_expr(expr);
|
||||
GB_ASSERT(tav.mode != Addressing_Invalid);
|
||||
return ir_addr_load(proc, ir_build_addr(proc, se->call));
|
||||
case_end;
|
||||
|
||||
case_ast_node(te, TernaryExpr, expr);
|
||||
ir_emit_comment(proc, str_lit("TernaryExpr"));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user