mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-23 22:25:00 -07:00
Fix SelectorCallExpr with no return values
This commit is contained in:
@@ -9029,7 +9029,7 @@ lbValue lb_build_expr(lbProcedure *p, Ast *expr) {
|
||||
GB_ASSERT(se->modified_call);
|
||||
TypeAndValue tav = type_and_value_of_expr(expr);
|
||||
GB_ASSERT(tav.mode != Addressing_Invalid);
|
||||
return lb_addr_load(p, lb_build_addr(p, se->call));
|
||||
return lb_build_expr(p, se->call);
|
||||
case_end;
|
||||
|
||||
case_ast_node(te, TernaryExpr, expr);
|
||||
@@ -9571,6 +9571,13 @@ lbAddr lb_build_addr(lbProcedure *p, Ast *expr) {
|
||||
}
|
||||
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 lb_build_addr(p, se->call);
|
||||
case_end;
|
||||
|
||||
case_ast_node(ta, TypeAssertion, expr);
|
||||
gbAllocator a = heap_allocator();
|
||||
TokenPos pos = ast_token(expr).pos;
|
||||
|
||||
Reference in New Issue
Block a user